Floating Action Button Icon not centered inside

前端 未结 8 2605
鱼传尺愫
鱼传尺愫 2021-01-02 13:07

I\'m trying to use a FAB but the icon inside is placing at bottom right of the button:

FAB with icon not centered

This is the FAB definition in the xml:

8条回答
  •  误落风尘
    2021-01-02 13:22

    After updating to SDK 28, I've got the same problem. Changing the size, scaleType, layout_gravity, etc will return the same.

    My current short-term solution is using the ImageButton.

提交回复
热议问题