luke cross
luke cross

Reputation: 331

How to set a mipmap icon on Floating Action Button?

My FAB is only showing the icon when I'm using a drawable resource, but not when I'm using a mipmap resource.

With a drawable resource:

Screenshot of Android Studio Layout Editor with FAB drawable

With a mipmap resource:

Screenshot of Android Studio Layout Editor with FAB mipmap

Upvotes: 0

Views: 166

Answers (1)

Oxorion
Oxorion

Reputation: 1

Replace : android:src="@mipmap/your_mipmap" with : android:foreground="@mipmap/your_mipmap"

Upvotes: 0

Related Questions