jcw*_*jcw 0 android tablelayout
你如何把两个孩子放在表格布局I andorid的一个单元格中?甚至是可能的,似乎无法在互联网上找到任何东西.
小智 5
将两个孩子包裹在一个布局中.这将导致单元格中有一个孩子,其中包含两个孩子.
<TableRow
android:id="@+id/tableRow2"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<Button
android:id="@+id/button3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
<Button
android:id="@+id/button4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button" />
</RelativeLayout>
</TableRow>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1196 次 |
| 最近记录: |