像下面的布局效果,我们经常使用LinearLayout实现,其实也可以使用TableLayout去简单的实现
代码如下:
<TableLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/spacing_small"
android:stretchColumns="*">
<TableRow>
<TextView
style="@style/GrayText"
android:layout_width="1dp"