0
동일한 높이를 갖고 있지만 부모를 채우는 행 수가 많은 표 레이아웃을 사용하는 방법을 아는 사람이 있습니까?상위를 채우지 만 동일한 높이를 가진 행이있는 표 레이아웃
다음 레이아웃에서 모든 행의 높이가 같지만 이미지보기를 첫 행에 추가하면이 행이 이미지 높이에 맞게 늘어납니다. 행을 이미지보기의 일부만 표시하거나 행에 넣을 수있는 모든 것을 던져 넣을 수있는 방법이 있습니까? this를 읽고시
<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>