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
Post a Comment