Sumit Bhatt
Sumit Bhatt

Reputation: 718

Change focus sequence on next press button in recyclerview

My RecyclerView items contains three EditText.

I want to move my focus from first EditText to second and third.

Then after i want to set my focus on first EditeText of next RecyclerView's item.

This all process will be happen when i press next button of my soft keypad.

enter image description here

Upvotes: 6

Views: 1377

Answers (1)

Shahbaz Ansari
Shahbaz Ansari

Reputation: 187

just set the ime option to next in Edittext example

android:imeOptions="actionNext"

<EditText
        android:id="@+id/gm_title"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="5dp"
        android:background="@drawable/coldo_text"
        android:hint="@string/enter_title"
        android:maxLines="1"
        android:imeOptions="actionNext"
        android:padding="5dp"
        android:textColor="pigc7"
        android:textSize="ads2" />

Upvotes: 2

Related Questions