Android ApiDemos示例解析(160):Views->Layouts->TableLayout->05. Spanning and Stretchable
来源:互联网 发布:如何购买淘宝网店 编辑:程序博客网 时间:2024/06/07 12:09
本例同时使用android:stretchColumns ,和使用非TableRow 作为TableLayout的子View,此时该非TableRow子View将延伸至整行,正是我们所需要显示的分隔线。
<TableLayout xmlns:android=”http://schemas.android.com/apk/res/android”
android:layout_width=”match_parent”
android:layout_height=”match_parent”
android:stretchColumns=”1″>
<TableRow>
<TextView
android:text=”@string/table_layout_5_open”
android:padding=”3dip” />
<TextView
android:text=”@string/table_layout_5_open_shortcut”
android:gravity=”right”
android:padding=”3dip” />
</TableRow>
<TableRow>
<TextView
android:text=”@string/table_layout_5_save”
android:padding=”3dip” />
<TextView
android:text=”@string/table_layout_5_save_shortcut”
android:gravity=”right”
android:padding=”3dip” />
</TableRow>
<TableRow>
<TextView
android:text=”@string/table_layout_5_save_as”
android:padding=”3dip” />
<TextView
android:text=”@string/table_layout_5_save_as_shortcut”
android:gravity=”right”
android:padding=”3dip” />
</TableRow>
<View
android:layout_height=”2dip”
android:background=”#FF909090″ />
<TableRow>
<TextView
android:text=”@string/table_layout_5_import”
android:padding=”3dip” />
</TableRow>
<TableRow>
<TextView
android:text=”@string/table_layout_5_export”
android:padding=”3dip” />
<TextView
android:text=”@string/table_layout_5_export_shortcut”
android:gravity=”right”
android:padding=”3dip” />
</TableRow>
<View
android:layout_height=”2dip”
android:background=”#FF909090″ />
<TableRow>
<TextView
android:text=”@string/table_layout_5_quit”
android:padding=”3dip” />
</TableRow>
</TableLayout>
- Android ApiDemos示例解析(160):Views->Layouts->TableLayout->05. Spanning and Stretchable
- Android ApiDemos示例解析(161):Views->Layouts->TableLayout->06. More Spanning and Stretchable
- Android ApiDemos示例解析(159):Views->Layouts->TableLayout->04.Stretchable
- Android ApiDemos示例解析(167):Views->Layouts->TableLayout->12. Cell Spanning
- Android ApiDemos示例解析(156):Views->Layouts->TableLayout->01. Basic
- Android ApiDemos示例解析(166):Views->Layouts->TableLayout->11. Gravity
- Android ApiDemos示例解析(157):Views->Layouts->TableLayout->02. Empty Cells
- Android ApiDemos示例解析(158):Views->Layouts->TableLayout->03.Long Content
- Android ApiDemos示例解析(162):Views->Layouts->TableLayout->07. Column Collapse
- Android ApiDemos示例解析(163):Views->Layouts->TableLayout->08. Toggle Stretch
- Android ApiDemos示例解析(164):Views->Layouts->TableLayout->09. Toggle Shrink
- Android ApiDemos示例解析(165):Views->Layouts->TableLayout->10. Simple Form
- Android ApiDemos示例解析(133):Views->Layouts->Baseline->1.Top
- Android ApiDemos示例解析(134):Views->Layouts->Baseline->2. Bottom
- Android ApiDemos示例解析(135):Views->Layouts->Baseline->3. Center
- Android ApiDemos示例解析(136):Views->Layouts->Baseline->4. Everywhere
- Android ApiDemos示例解析(138):Views->Layouts->Baseline->6. Relative
- Android ApiDemos示例解析(141):Views->Layouts->LinearLayout->1. Vertical
- 主备切换和心跳机制的一点考虑
- 红黑树
- 【排序算法】鸡尾酒排序的实现与分析
- Unity 3D网页游戏 Demo 展示
- 红黑树
- Android ApiDemos示例解析(160):Views->Layouts->TableLayout->05. Spanning and Stretchable
- Java集合类的学习(一)
- InvalidateRect函数
- hdu 3625 Examining the rooms
- java String 缓冲池概念的举例说明
- 开学啦
- 计算图中包含环的个数
- Vaadin Web应用开发教程(48): SQLContainer-编辑
- 一致性 hash 算法( consistent hashing )