私は次のレイアウトを持っています:
<TableLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:stretchColumns="*">
<TableRow
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:descendantFocusability="beforeDescendants">
<TextView
android:text="Login:"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<EditText
android:id="@+id/password"
android:background="@null"
android:duplicateParentState="true"
android:inputType="text"
android:maxLines="1"
android:singleLine="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
</TableRow>
</TableLayout>
画面幅の半分を占めるので、クリックしたEditText
ときにフォーカスを合わせたい。TableRow
そのためにどのように設定しますか?追加のコードなしでそれは可能ですか?