Hide TabLayout on Scroll of Content instead of ToolBar

前端 未结 4 759
醉酒成梦
醉酒成梦 2020-12-01 05:24

I want to hide TabLayout on scrolling my content. Currently I searched the net but I found samples which hide the Toolbar, but I want to hide TabLayout. So please help me. I

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 06:16

    Hello is you wish to disappear the toolbar and the tabs still view, you must write the next code:

    
    

    And if you want hide the TabLayout use scrollFlags in the block of TabLayout

    app:layout_scrollFlags="scroll|enterAlways"
    

提交回复
热议问题