Losing Focus from EditText when double-clicking on recyclerview

0

I'm having a recyclerview with two EditText all works fine, the problem is when I double-click outside EditText it loses focus and the alphanumeric keyboard appears and the EditText is just numeric. In fact this will not bring too many problems so my application would no longer like to know the reason for this behavior. If anyone knows the move.

    
asked by anonymous 23.03.2018 / 06:19

1 answer

0

People who are having trouble 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 on a recyclerview item the second time, I would make a notification with notifyDataSetChanged(); and my EditText would lose focus. If anyone has a way to EditText does not lose focus please could post.

    
23.03.2018 / 07:26