- 解决ScroolView嵌套recyclerview时滑动失去惯
- 解决RecyclerView嵌套,滑动冲突问题
- Android ScrollView嵌套Recyclerview
- ScrollView与RecyclerView嵌套使用时,列表滑
- RecyclerView的item中嵌套Scrollview的滑
- 解决ScrollView嵌套RecyclerView 滑动卡顿问
- NestedScrollView+RecyclerView
- android的RecyclerView嵌套在NestedScr
- android解决RecyclerView嵌套在NestedSc
- RecyclerView嵌套(含滑动冲突解决,在子控件中解决冲突
一般情况下,scroolview滑动时很顺畅,但是如果嵌套recyclerview时,点击recyclerview滑动时候,scroolview惯性就会消失,此时你滑动的是recyclerview:
解决的方法就是将recyclerview不可竖直滑动:
//解决scroolview嵌套recyclerview失去惯性问题
LinearLayoutManager manager = new LinearLayoutManager(getContext()){
@Override
public boolean canScrollVertically() {
return false;
}
};
recyclerView.setLayoutManager(manager);
亲测,可用!
网友评论