How to hide ActionBar while scrolling ListView in android?

后端 未结 4 606
南旧
南旧 2020-12-10 01:23

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

4条回答
  •  时光取名叫无心
    2020-12-10 01:45

    you should use CoordinatorLayout for this task. It is part of the support design library. Here, in the CoordinatorLayout and the app bar section, you can find an example

提交回复
热议问题