私は TablLayout を持っています。それは 1 行と 2 列です。
最初の列はテキストです。できるだけ大きくしたいのですが、2 番目の列は 2 行 1 列の別のテーブルです。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:stretchColumns="1"
>
<TableRow>
<TextView
android:id="@+id/parkingDataText"
android:layout_marginLeft="10dip"
android:layout_marginRight="10dip"
/>
<TableLayout>
<TableRow>
<ImageButton
android:id="@+id/buttonStar"
android:layout_marginLeft="10dip"
android:background="@null"
/>
</TableRow>
<TableRow>
<ImageButton
android:id="@+id/buttonRent"
android:layout_marginLeft="10dip"
android:background="@null"
/>
</TableRow>
</TableLayout>
</TableRow>
strechColumns="1" を使用する必要があると思ったのですが、最初の列は 2 番目の列が使用しないスペースを占有していましたが、機能しません。何か案が?
前もって感謝します