How to check if first item of RecyclerView is visible on the screen
问题 Is it possible to check if the first or second item of the RecyclerView is visible on the screen of the user? For example when the user scrolls down: if (first item not visible to user) { // do something } else if ( first item is visible){ // do something } What I currently do is I add a listener to my recycler so that when the user scrolls down, it will do something and scroll up. recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { @Override public void onScrolled