Hide AppBar when scrolling down

后端 未结 7 1904
小蘑菇
小蘑菇 2020-12-02 18:10

I have an AppBar and a horizontal linearlayout (which includes an edit text and two imagebuttons) and other things in my layout. When user scrolls down,

7条回答
  •  执笔经年
    2020-12-02 18:28

    Try this code: Use layout_scrollFlags like below:

    app:layout_scrollFlags="scroll|enterAlways"

    and your XML file change like below:

    
    
    
    
    
    
        
    
        
    
    
    
    
    
    
    

    this is content_main XML file

    
    
    
    
    
    
    
    
    

提交回复
热议问题