Android: Floating Button Icon is not centred

后端 未结 9 2356
忘了有多久
忘了有多久 2020-12-10 00:53

I\'m trying to create a floating button in my app. The button is there, but the image in the button is a bit upwards (see image).

I can\'t figure out what\

9条回答
  •  [愿得一人]
    2020-12-10 01:21

    Best solution is not to hardcode the FAB's dimension.

    Icon will be centered with attribute android:scaleType="center"

    
    

提交回复
热议问题