recyclerView 小部件中的下一个焦点方向

next-focus direction in recycleView widget

当创建仅包含两个 editText 小部件的简单 recyclerView 时,键入数据时下一个焦点元素的方向与 pic1 上的一样 --- 如何设置下一个焦点元素的方向与 pic2 上的方向一样? 干杯

我的简单代码

 <LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <EditText
        android:id="@+id/edit_text_left"
        tools:hint="editTextLeft"
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="wrap_content" />

   <EditText        
        android:id="@+id/edit_text_right"
        tools:hint="editTextRight"
        android:layout_width="0dp"
        android:layout_weight="1"
        android:layout_height="wrap_content" />

</LinearLayout>

尝试使用 android:imeOptions="actionNext" 将焦点移动到下一个 Editext

<EditText
    android:id="@+id/edit_text_left"
    tools:hint="editTextLeft"
    android:layout_width="0dp"
    android:layout_weight="1"
    android:inputType="text"
    android:imeOptions="actionNext"
    android:layout_height="wrap_content" />

像这样布局

<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:orientation="horizontal"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <EditText
        android:id="@+id/edit_text_left"
        tools:hint="editTextLeft"
        android:layout_width="0dp"
        android:layout_weight="1"
        android:inputType="text"
        android:imeOptions="actionNext"
        android:layout_height="wrap_content" />

   <EditText        
        android:id="@+id/edit_text_right"
        tools:hint="editTextRight"
        android:layout_width="0dp"
        android:layout_weight="1"
        android:inputType="text"
        android:imeOptions="actionNext"
        android:layout_height="wrap_content" />

</LinearLayout>