How to hide toolbar while scrolling listview up? (Just like google play store)

后端 未结 3 698
长发绾君心
长发绾君心 2021-01-02 03:06

Ok, so hiding the action bar is something doable. But, how can we hide the (newly introduced) toolbar in our activity?

I am making an app with an activity having the

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-02 03:57

    Use the following code:

    ViewCompat.setNestedScrollingEnabled(listView, true);
    

提交回复
热议问题