I want to make my background Activity
a little bit smaller while opening the Navigation Drawer
, Simulate the effect that exists in the Airbnb
if you have a look at the third-party library SlidingMenu, that should have everything you want.
The bit you are interested in is the behindScrollScale
, which says this:
behindScrollScale - a float representing the relationship between the above view scrolling and the behind behind view scrolling. If set to 0.5f, the behind view will scroll 1px for every 2px that the above view scrolls. If set to 1.0f, the behind view will scroll 1px for every 1px that the above view scrolls. And if set to 0.0f, the behind view will never scroll; it will be static. This one is fun to play around with. Default is 0.25f.