0

I checked api and set src background or foreground for FAB but always showing same as image below. I want to replace default red button.

enter image description here

hrskrs
  • 4,447
  • 5
  • 38
  • 52
Super-Sun
  • 45
  • 1
  • 5

1 Answers1

0

You can change it programatically by doing this:

fab.setImageResource(R.drawable.your_drawable);

or you can do this in the xml

android:src="@drawable/icon" // change your background icon
app:backgroundTint="@color/icons" // change your background color
UserName_Untold
  • 165
  • 1
  • 13