android-floating-action-button icon indicating copy to clipboard operation
android-floating-action-button copied to clipboard

Icon for FAB Menu Subitem

Open danksky opened this issue 8 years ago • 2 comments

How can I add an icon to the menu subitem?

danksky avatar Nov 16 '16 05:11 danksky

To see how the buttons are added to your xml layouts, check the sample project.

webjoel avatar Nov 28 '16 22:11 webjoel

Menu icon didn't work for me in xml, so I ended up doing it in Java:

FloatingActionButton btn = view.findViewById(R.id.buttonID);
btn.setIcon(R.drawable.myimage);

I also downloaded the library to use in my project locally, not sure if that makes a difference.

williamsiuhang avatar Sep 27 '17 16:09 williamsiuhang