Change Background Color of Floating Action Button in Android

mstoic

Administrator
Staff member
#1
The simplest way to change the background color of the Floating Action Button is to use the app:backgroundTint in your XML file.

You can also change the icon color using the android:tint attribute.

XML:
app:backgroundTint="@color/colorRed"
android:tint="@color/colorWhite"
 
Top