I want to implement a view drag event in my application.
In the screen above, I want to pin the search bar to the bottom and change the pink layout visibility when I drag the grey slider.
This is the workaround I did so far. How would I show / hide full view when user releases the touch event in the middle. Like I want to show full view when the use slides up more than 50% of the view and hide the view when user doesn't slide up to 50%
Okay I have done it myself using CordinatorLayout
and a little bit of tweaks.