yavski / fab-speed-dial

FAB flinging out actionable menu items using the Speed dial metaphor
Apache License 2.0
478 stars 123 forks source link

Added custom animation support for FAB button #47

Open FWest98 opened 7 years ago

FWest98 commented 7 years ago

I added support for custom animations of the FAB by passing a normal statelist and having two Animatables as states. The Dialer will recognize that the drawable is animatable and will run the animation. In the default implementation this allows to replace the 10 PNGs with one vector drawable and a bunch of animations which is smaller, neater and better scalable. Furthermore I prefixed all IDs in the resource files since an ID mismatch would occur if you would call your SpeedDialer "fab" and you would get casting errors.