How to remove focus from RecyclerView inside ScrollView?

前端 未结 5 1392
傲寒
傲寒 2020-12-05 07:37

I have a Scrollview which contains an ImageView and RecyclerView. if navigation drawer opened then closed the RecyclerView auto scrolling to top, How to stop this?



        
5条回答
  •  感动是毒
    2020-12-05 08:29

    Just add the following code in your linear layout, works 100% ` android:descendantFocusability="blocksDescendants"

    
    
        
    

提交回复
热议问题