SmartRefreshLayout嵌套CoordinatorLayout加载更多 自动滑动问题
自己遇到使用的大致结构如下
FrameLayout
CoordinatorLayout AppBarLayout CollapsingToolbarLayout CollapsingToolbarLayout AppBarLayout *ViewPager CoordinatorLayout
FrameLayout
*ViewPager 里面
FrameLayout
SmartRefreshLayout RecyclerView RecyclerView SmartRefreshLayout FrameLayout
这时候使用SmartRefreshLayout加载更多,如果有惯性滑动,列表就会持续滑动,影响体验,这时候只要在
SmartRefreshLayout.finishLoadMore()
下面追加一个
RecyclerView.stopScroll();
可以解决问题,当然你有更好的方法欢迎反馈给我~~~
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。
评论已关闭