Created
November 10, 2018 08:22
-
-
Save mahdi-malv/7922c8d4e3f9f82c2380c7f1e3804d5d to your computer and use it in GitHub Desktop.
Detect scrolling up and down in a recyclerView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//تشخیص اسکرول کردن در لیست | |
recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { | |
@Override | |
public void onScrolled(RecyclerView recyclerView, int dx, int dy) { | |
if (dy > 0) { | |
//Scrolling down | |
} else if (dy < 0) { | |
//Scrolling up | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://tienanhvn.blogspot.com/