1.解决滑动冲突
recyclerCondition.setNestedScrollingEnabled(false);
2.解决recyclerView一开始不能置顶
在nestedScrollView里面的直接子布局设置
android:focusable="true"
android:focusableInTouchMode="true"
本文介绍了解决Android应用中滑动冲突的方法,通过设置recyclerCondition.setNestedScrollingEnabled(false)禁用嵌套滚动。同时,解决了recyclerView在nestedScrollView中无法自动置顶的问题,只需在nestedScrollView的直接子布局中设置android:focusable=true和android:focusableInTouchMode=true即可。
1.解决滑动冲突
recyclerCondition.setNestedScrollingEnabled(false);
2.解决recyclerView一开始不能置顶
在nestedScrollView里面的直接子布局设置
android:focusable="true"
android:focusableInTouchMode="true"

被折叠的 条评论
为什么被折叠?