Clans / FloatingActionButton

Android Floating Action Button based on Material Design specification
Apache License 2.0
5.23k stars 1.13k forks source link

How to change the icon when clicking the menu #428

Open jkimkor opened 6 years ago

jkimkor commented 6 years ago

In the normal state, an icon of "open" shape I hope that it will change to the "close" icon the moment you open it by clicking. What should I do?

PS. I would like to show the gray background behind the click, Is there a function independently?

null1099 commented 6 years ago

see my working snippet for changing the icon here: https://github.com/Clans/FloatingActionButton/issues/430#issuecomment-374522726