此代碼有什麼問題?爲什麼按鈕不在這個表格列中?Button並不想在TableLayout中正確使用
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TableRow>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/str1"
/>
<EditText
android:id="@+id/id1"
android:layout_width="70dp"
android:layout_height="wrap_content"
/>
<Button
android:id="@+id/id2"
android:layout_width="wrap_content"
android:layout_height="65dp"
android:text="@string/str2"
android:gravity="right"/>
</TableRow>
</TableLayout>
它去哪裏? – 2011-06-07 17:51:02
它被粘貼到EditText(右側)。 – sandalone 2011-06-07 21:00:17