Android Toolbar + Tab Layout + Drawer, Hide toolbar when scrolling and take TabLayout to the top

后端 未结 10 940
遇见更好的自我
遇见更好的自我 2020-12-28 14:41

I have activity which has drawer attached to it. Each menu of the drawer is a fragment, and under one of the menu I have a fragment with TabLayout, and each tab

10条回答
  •  执笔经年
    2020-12-28 15:28

    To hide your Toolbar anytime you can use :

    getSupportActionBar().hide();
    

    for more explanation view url1 or url2

提交回复
热议问题