我都內的LinearLayout tablelayout解決,但它讓我看到這個警告信息
這TableLayout佈局或它的LinearLayout父母也沒用 如何克服這個警告可能ANE幫我 。 在此先感謝這TableLayout佈局或它的LinearLayout父母也沒用如何從這個警告
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TableLayout>
<TableRow
android:id="@+id/tableRow3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center" >
<TextView
android:id="@+id/txtPass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical|center_horizontal"
android:text="Password"
android:textSize="18sp"
android:width="100dp" />
<EditText
android:id="@+id/edPass"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:password="true" >
<requestFocus />
</EditText>
</TableRow>
</TableLayout>
</LinearLayout>
現在我有這個佈局<?xml version =「1.0」encoding =「utf-8」?> <的TableRow 機器人:ID = 「@ + ID/tableRow1」 機器人:layout_width = 「WRAP_CONTENT」 機器人:layout_height = 「WRAP_CONTENT」 > 和裏面 TableLayout> –
2012-01-18 05:59:42
這應該工作。你還在收到那個警告信息嗎? – kosa 2012-01-18 06:03:32
是一樣的警告再次 – 2012-01-18 06:05:03