How to move a view above Snackbar just like FloatingButton

前端 未结 8 558
伪装坚强ぢ
伪装坚强ぢ 2021-01-31 07:50

I got a linear layout that I want to move up when a Snackbar appears.

I saw many examples how to do this with FloatingButton, but what about a regular view?

8条回答
  •  长发绾君心
    2021-01-31 08:38

    NO need of Co-ordinator layout using a regular view align the snack bar to the bottom of the view, and place the button on top of it, on click of button of whatever your logic is show snackbar or linear layout.

    
    /*snackbar code
    
     
    
                
    
                
            
    
    
    

提交回复
热议问题