NestedScrollView 嵌套RecyclerView 判断RecyclerView滑动到最底部,需要分页加载的方法

 

scroller.setOnScrollChangeListener(new NestedScrollView.OnScrollChangeListener() {
        @Override
        public void onScrollChange(NestedScrollView v, int scrollX, int scrollY, int oldScrollX, int oldScrollY) {if (scrollY == (v.getChildAt(0).getMeasuredHeight() - v.getMeasuredHeight())) {
               //到底了
            }
       }
    });

 

上一篇:女生微信名简单优雅的


下一篇:异步数据加载示例