Solution to the top when you click Item RecyclerView nested RecyclerView

The reason to go top when they click Item RecyclerView nested RecyclerView is reason to seize the focus, the solution 
Solution: holder.binding.rvContact.isFocusableInTouchMode = false (kotlin grammar oh)
Note: To set each time the trigger code inside the xml inside one-time setup is invalid.

 

Guess you like

Origin www.cnblogs.com/yongfengnice/p/11445731.html