How to add floating action button on top of scrollview

后端 未结 4 1752
难免孤独
难免孤独 2021-01-04 02:19

I have a floating action button that I would like to add on top of a scrollview so that the button stays, even if you scroll. I want it on the top of the scrollview and in t

4条回答
  •  南笙
    南笙 (楼主)
    2021-01-04 02:59

    try this:

    android:layout_alignParentRight="true"

    android:layout_alignParentBottom="true"

    
    
    
        
    
            
    
    
                
    
                    
    
    
                
    
                
    
                    
    
                    
                
    
                
    
                    
    
                    
                
    
                
    
                    
    
    
                
    
                
    
                    
    
    
                
    
    
            
        
    
            
    
            
        
    
    
    

提交回复
热议问题