0

UI に編集テキストがありません。上下の矢印を押したときにフォーカスを上下に設定したい。「android:nextFocusDown」を使用しましたが、機能していません。

(たとえば、タブを使用して次のカーソルを移動するように)

xmlで設定するコードはありますか、教えてください。

4

1 に答える 1

0

これを試して :

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content" 
    android:orientation="vertical">
    <EditText
        android:id="@+id/editText1"
        android:layout_width="200dp"
        android:layout_height="wrap_content"
        android:imeOptions="actionNext"
        android:nextFocusDown="@+id/editText2" />
    <EditText
        android:id="@+id/editText2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />
</LinearLayout>

これがお役に立てば幸いです。

ありがとう。

于 2012-12-13T09:52:17.457 に答える