I have a navigation drawer main activity and a search view above list view .what I want is that when I scroll up the listView action bar gets hidden and both the list and search view shift above providing more space to user (same as used by Google chrome etc..)
Asked
Active
Viewed 1.0k times
3
-
http://stackoverflow.com/questions/28037476/how-to-hide-toolbar-while-scrolling-listview-up-just-like-google-play-store go to this link for reference. – Sneha Sarkar Jan 16 '17 at 09:28
2 Answers
4
add app:layout_scrollFlags="scroll|enterAlways"
in Toolbar
you can see details here

Salauddin Gazi
- 1,497
- 1
- 13
- 18
3
You need to use Coordinator Layout with app:layout_scrollFlags="scroll|enterAlways"
Please refer this link - http://saulmm.github.io/mastering-coordinator
Good Luck

Sushant Gosavi
- 3,647
- 3
- 35
- 55