androidfloating-action-buttonanimationdrawable

AnimationDrawable from play to stop icon on FloatingActionButton


I have a web radio player app that haves a FloatingActionButton to play and stop the reproduction. When the player is not playing, the icon is a play, when it is playing, the icon is a stop. Some days ago I saw an animation that could be very good to my app, where a play icon morphs in a stop icon, something like this. I've been searching for a tutorial or lib to help me with this but unsuccessfully. Im using this FAB. Any help is welcome. Thaks in advance.


Solution

  • Hope this library will help you. It already contains such animation and also provides backward compatibility on devices with SDK level >= 14