I have a View and a RecyclerView housed in a LinearLayout. What I want to achieve is something like this:
https://material.google.com/patterns/scrolling-techniques.h
You have to use Coordinator Layout with the CollapsingToolbarLayout
//HERE you should take a look what you want your collapse bar do.
Obs: the comments will give errors if you put on a xml file. Is on propose so you will remember to read hahahah