Two floating action buttons next to each other

前端 未结 12 1498
谎友^
谎友^ 2020-12-23 09:26

The material design documentation has an example of Google Maps showing two floating action buttons next to one another (actually, one above the other).

12条回答
  •  臣服心动
    2020-12-23 10:15

    A very simple way (that worked for me!) was to just put the two floating buttons in a vertical linear layout at the bottom/end of its parent.

        
        
        
    
    

    Just adjust the layout_margin attributes for the floating buttons to get the spacing as you want it.

提交回复
热议问题