Losing Edittext Focus by double clicking recyclerview

Asked

Viewed 70 times

0

I am with a recyclerview with two Edittext everything works very well, the problem is when I double click off Edittext it loses focus and appears the alphanumeric keyboard being that Edittext is only numeric. Actually this will not bring many problems to my application no more would like to know the reason for this behavior. If someone knows the move.

1 answer

0

People who are having problems focusing on recyclerview the problem may be in the adapter notification.

Every time you notify the adapter it loses focus. In my case I was with EditText, when I clicked for the second time on an item from recyclerview, I made a notification with notifyDataSetChanged(); and my EditText lost focus. If someone has a way to Edittext not lose focus please could post.

  • You still haven’t solved?

  • I solved otherwise, but not as I wanted, I would like to give requestfocus, but it did not work. what worked for me was to cancel the keyboard when I do notifyDataSetChanged notification()

  • Actually I didn’t even want him to lose focus.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.