How to change the shape of Floating Action Button (FAB) on android?

前端 未结 3 1199

In our android app we need to create a floating action button which isn\'t the default circle but a square with with three rounded corners. The fab looks like in the image below

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-04 02:06

    With the Material Components Library you can use the shapeAppearanceOverlay:

    
    

    with:

    
    

提交回复
热议问题