我有一個包含textviews和edittexts的屏幕。 我想編輯文本等寬。但他們看起來很窄。我不想給一個傾角值。我能怎麼做? 非常感謝。等寬EditText?
<TableLayout
android:id="@+id/TableLayout"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_centerHorizontal="true"
>
<TableRow>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Name"
>
</TextView>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/name">
</EditText>
</TableRow>
<TableRow>
<TextView
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:text="Last Name"
>
</TextView>
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lastname">
</EditText>
</TableRow>
</TableLayout>
如果可能,那麼你應該把什麼類型的佈局或視圖你想要的,然後提及你面臨的問題? –