I need to create a GUI with a ListView
and an ActionBar
which will hide when scrolling down and when scrolling up it must reappear.
The foll
If you would like to obtain a list with this behaviour, you should:
compile 'com.android.support:design:22.2.0'
CoordinatorLayout
with a Toolbar where you have to define app:layout_scrollFlags="scroll|enterAlways"
RecyclerView
instead of a ListView
. As described here ListView
and the GridView
have the expected behavior with the CoordinatorLayout
only with API>21. In this case you have to use setNestedScrollingEnabled(true);
The official blog post shows this case: