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

前端 未结 3 1197

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 01:56

    What you're looking for is changing the background of your button

    android:background="@drawable/my_shape"
    

提交回复
热议问题