Ich versuche ein Table Layout zu haben, enthält mehrere Tablerows. Eine der Zeilen enthält 4 Schaltflächen, während die zweite Zeile einen sehr langen Text enthält. Die Breite der Schaltfläche erstreckt sich jedoch mit dem Text in der zweiten Zeile. Gibt es das überhaupt, um das zu verhindern?android: tablerow gemischt mit Spalten und mehrzeiligem Text
alt text http://i40.tinypic.com/34srli0.jpgalt text http://i44.tinypic.com/2505dmf.jpg
http://img684.imageshack.us/i/tableview1.jpg/
http://img521.imageshack.us/i/tableview2.jpg/
Hier ist meine XML-Datei: (irgendwie von dieser Website auf XML-Datei ist nicht freundlich)
AbsoluteLayout
android:id="@+id/widget0"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
>
TableLayout
android:id="@+id/widget28"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_x="0px"
android:layout_y="10px"
>
TableRow
android:id="@+id/widget29"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
Button
android:id="@+id/widget30"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
>
</Button>
Button
android:id="@+id/widget31"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
>
</Button>
Button
android:id="@+id/widget32"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
>
</Button>
Button
android:id="@+id/widget33"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Button"
>
</Button>
</TableRow>
TableRow
android:id="@+id/widget35"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
TextView
android:id="@+id/widget40"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextViewTextViewTextViewTextViewTextViewTextView"
>
</TextView>
</TableRow>
</TableLayout>
</AbsoluteLayout>
auch versucht, die Attribute in festlegen Code, hat nicht funktioniert. Ist es ein Fehler von Android? – Yang