我有塔莱乌特,有一栏和两栏。
第一栏是案文,我希望尽可能大,第二栏是另一栏,有两行,一栏:
<?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>
I thought I had to use strechColumns="1" and the first column occupied the space that the second one doesnt use, but it doesn t work. Any idea?
事先感谢你