Powiel możliwe:
XML Table layout? Two EQUAL-width rows filled with equally width buttons?równy szerokości kolumn w tabeli układu w Android
używam TableLayout
do listy danych pokazują w 4 kolumnach.
Opis problemu:
jestem w stanie ustawić jednakową szerokość wszystkich 4 kolumnach, które są w moim TableLayout
. kładę mój kod układ, który używam ...
<TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:stretchColumns="0">
<TableRow>
<TextView android:text="table header1" android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="10dip" android:textStyle="bold"/>
<TextView android:text="table header2" android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="10dip" android:textStyle="bold"/>
<TextView android:text="table header3" android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="10dip" android:textStyle="bold"/>
<TextView android:text="table header4" android:layout_width="wrap_content" android:layout_height="wrap_content"
android:textSize="10dip" android:textStyle="bold"/>
</TableRow>
</TableLayout>
Jak należy przepisać ten układ do pokazania 4 kolumny o równych rozmiarach?
http://stackoverflow.com/q/2865497/778427 –
@Glendon Trullinger waoooo swoją pracę. dzięki. –