私はいくつかのデータを表示するためにテーブル レイアウトを試していました....データは 3 列のデータであり、列が利用可能な幅全体を利用する必要があります。しかし、私が使用したレイアウト XML コードは、内容に従って列をまとめているだけのようです。
レイアウト XML コード
<?xml version="1.0" encoding="utf-8"?>
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TableRow
android:layout_width="fill_parent">
<TextView
android:padding="3dip"
android:gravity="left"
android:text="Name"
/>
<TextView
android:padding="3dip"
android:gravity="left"
android:text="Address"
/>
<TextView
android:padding="3dip"
android:gravity="left"
android:text="Age"
/>
</TableRow>
</TableLayout>