站内搜索:
首页 >> 前端 >> 内容
界面布局-TableLayout

时间:2013/5/24 8:34:37

res/layout/activity_my_fifth.xml

[html] 

<TableLayout xmlns:android="https://schemas.android.com/apk/res/android"  

    android:id="@+id/Table1"  

    android:layout_width="fill_parent"  

    android:layout_height="fill_parent"  

    android:shrinkColumns="1"  

    android:stretchColumns="0" >  

  

    <Button  

        android:id="@+id/button4"  

        android:layout_width="wrap_content"  

        android:layout_height="wrap_content"  

        android:text="@string/in_one_row_button" />  

  

    <TableRow  

        android:id="@+id/tableRow1"  

        android:layout_width="fill_parent"  

        android:layout_height="wrap_content" >  

  

        <Button  

            android:id="@+id/button1"  

            android:layout_width="wrap_content"  

            android:layout_height="wrap_content"  

            android:text="@string/stretchbutton" />  

  

        <Button  

            android:id="@+id/button2"  

            android:layout_width="wrap_content"  

            android:layout_height="wrap_content"  

            android:text="@string/shrinkbutton" />  

  

        <Button  

            android:id="@+id/button3"  

            android:layout_width="wrap_content"  

            android:layout_height="wrap_content"  

            android:text="@string/normalbutton" />  

  

    </TableRow>  

  

</TableLayout>  

 

  • 上一篇:界面布局-RelativeLayout
  • 下一篇:揭开内容无关链表的神秘面纱
  • 返回顶部