Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the default FAB image in scrolling activty

Tags:

android

I am trying to learn to work on scrolling activity (android studio) but I am unable to change the default Fab Icon provided by the activity itself. Can someone please provide some guidance about changing the Fab icon to another icon image?

(In short: How to change "mail" Icon to "+" icon)

like image 595
Gladwin James Avatar asked Dec 24 '22 09:12

Gladwin James


1 Answers

in your xml change src drawable:

android:src="@android:drawable/ic_dialog_email"

to your desirable icon.

like image 153
justDroid Avatar answered Feb 19 '23 09:02

justDroid