I am working on android app and using recyclerview and scrollview in some activities. Now I want to show some layout when recyclerview/scrollview scrolls in up direction and hide the layout when it scrolls in down direction. I want a function which can tell that recyclerview/scrollview is scrolling in up or down direction.
Please help if anyone know how to do this for both recyclerview and scrollview.
Thanks a lot in advanced.