android - How to get the cursor on Editext of child item of the Recyclerview when the new item is added to it? -


i have recyclerview i'm adding child items on click of button dynamically. each child item has editext. when new child item been added recyclerview editetext of new item should focus. how can it?

you can request focus inside adapter.

something this:

@override     public void onbindviewholder(recyclerview.viewholder holder, final int position) {  ((viewholder) holder).youredittext.requestfocus(); // set focus on edittext whenever child getting created  } 

Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -