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

Not perfect code to switch state #1

Closed
huage2580 opened this issue Jan 7, 2017 · 1 comment
Closed

Not perfect code to switch state #1

huage2580 opened this issue Jan 7, 2017 · 1 comment

Comments

@huage2580
Copy link

Drawable drawable = item.getIcon(); if (drawable instanceof Animatable) { ((Animatable) drawable).start(); }
I think the code can replace by **animated-selector **.
Not a good solution that using code to start anim.

@adonixis
Copy link
Owner

animated-selector is available only after API 21, but this project has minSdkVersion = 16.

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

No branches or pull requests

2 participants