on scrolled to add items in recyclerview always comes to top automatically when i scroll down
问题 I am implementing endless recycler view . Data is getting fine from server aslo scroll down getting down and show it. But on scroll it automatically comes to top again and again. I implemented number of solutions but doesn't work. here is bit of code. private int postNo = 15; public void onScrolled(RecyclerView recyclerView, int dx, int dy) { super.onScrolled(recyclerView, dx, dy); if (!lastTime) { if (dy > 0) { // check for scroll down visibleItemCount = layoutManager.getChildCount();