📌  相关文章
📜  知道 recyclerview 何时在最后一项上 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:29.240000             🧑  作者: Mango

代码示例1
recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
        @Override
        public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
            super.onScrollStateChanged(recyclerView, newState);

            if (!recyclerView.canScrollVertically(1) && newState==RecyclerView.SCROLL_STATE_IDLE) {
                Log.d("-----","end");
                
            }
        }
    });