android-floating-action-button
android-floating-action-button copied to clipboard
Icon for FAB Menu Subitem
How can I add an icon to the menu subitem?
To see how the buttons are added to your xml layouts, check the sample project.
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.