How to set Floating Action Button image to fill the button?

后端 未结 7 1458
情歌与酒
情歌与酒 2021-01-11 17:27

Usually icons are set for floating action buttons, but I need to set an image, so I can make a circular image.

I added it to the project (using Android Studio-> New

7条回答
  •  囚心锁ツ
    2021-01-11 17:36

    Set the following property for the FAB

    android:scaleType="center"

    if that does not work try using property

    app:fabSize="mini"

提交回复
热议问题