I need to make two buttons that pop up below that appear when scrolling.
I will show on the example of the application Aliexpress. When scrolling, the "Filter" and "Characteristics" buttons smoothly go out with us:
And when scrolling up, these buttons disappear:
When I used LinearLayout with ScrollView , I simply connected the OnScrollChangeListener handler and, depending on the scroll direction, I started the necessary animation for the buttons, but when I connect this handler to RecyclerView , the handler reacts to the scroll, but oldScrollY and scrollY are 0.

