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:
In my situation run ok this solution app:fab_icon="@drawable/btn_back_to_top_3x" enter image description here not android:src="@drawable/btn_back_to_top_3x enter image description here
app:fab_icon="@drawable/btn_back_to_top_3x"
android:src="@drawable/btn_back_to_top_3x
And you can add android:scaleY="1.X" android:scaleX="1.X"
android:scaleY="1.X" android:scaleX="1.X"
for additional variation