Answers for "know when recyclerview is on the last item"

0

know when recyclerview is on the last item

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");
                
            }
        }
    });
Posted by: Guest on September-01-2020

Code answers related to "know when recyclerview is on the last item"

Code answers related to "Javascript"

Browse Popular Code Answers by Language