2

私は2つのテキストビューと2つの編集テキストビューを持っています.....これが私のxmlです

<TextView
        android:id="@+id/txt_email"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="10dp"
        android:text="@string/email"
        android:textColor="@color/gray"
        android:textSize="@dimen/medium"
        app:font="font/trebuc_normal" />

    <EditText
        android:id="@+id/et_un"
        style="@style/EditText"
        android:layout_width="fill_parent"
        android:background="@drawable/edittext_roundcorner"
        android:imeOptions="actionNext"
        />

    <FontedTextView
        android:id="@+id/txt_pass"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/password"
        android:textColor="@color/gray"
        android:textSize="@dimen/medium"
        app:font="font/trebuc_normal" />

    <EditText
        android:id="@+id/password"
        style="@style/EditText"
        android:layout_width="fill_parent"
        android:background="@drawable/edittext_roundcorner"
        android:inputType="textPassword"
         /> 

ユーザーが電子メール編集テキストビューにテキストを入力してEnterキーを押したときに、コントロールを渡してIDパスワードでテキストを編集したい。オプションを使用したが機能しない。次のボタンを押したときにテキストを入力した後、コントロールは同じ編集の次の行に移動するテキストビュー。助けてください?

4

2 に答える 2

3

使用することもできますeditText.setNextFocusUpId(R.id.editText);

于 2012-09-13T05:41:10.557 に答える
1

すべてのEdittextのプロパティの下に設定すると、問題が解決します。

android:singleLine="true"
于 2012-09-13T05:38:36.703 に答える