First things first, imma say: This might not work well with RecyclerViews which have a lot of elements, I couldn’t test it properly yet(I didn’t test many things). And overall, it might not be the prettiest example.
I’m a bit new in Android Development, and posting articles as well, so this…

CoffeeCode

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store