同じ高さで親を埋める複数の行を持つテーブルレイアウトを作成する方法を知っている人はいますか?
次のレイアウトでは、すべての行の高さが同じになりますが、たとえば最初の行に画像ビューを追加すると、この行は画像の高さに合わせて拡大されます。画像ビューの一部、または行に収まるようにスローする可能性のあるものだけを行に表示する方法はありますか?
<TableLayout android:id="@+id/table_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableRow android:id="@+id/row1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="#FF0000FF">
</TableRow>
<TableRow android:id="@+id/row2"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="#FF00000">
</TableRow>
<TableRow android:id="@+id/row3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="#FF00FF00">
</TableRow>
<TableRow android:id="@+id/row4"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="#FFFF0000">
</TableRow>
<TableRow android:id="@+id/row5"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:background="#FFFFFFFF">
</TableRow>
</TableLayout>