Search code examples
javaandroidandroid-recyclerviewfragment

Recycler View Item automatically starting an action after the previous item has finished its action


People were confused with my earlier question so let me ask it in another way. I have created items using recyclerview. Now each item contains an edit text and a button.What i want is that after I've pressed the done button the cursor goes over to the next item in the recyclerview .


Solution

  • just call this method from your recyclerView object after click method

    recyclerView.scrollToPosition(position + 1);
    

    remember you have to call it in Ui thread and in your activity class that can access to your recyclerView object