Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added custom animation support for FAB button #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

FWest98
Copy link

@FWest98 FWest98 commented Dec 5, 2016

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.

Changed add-animation to animated vectors (better scalable) and also allows for custom animated drawables.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant