-
Notifications
You must be signed in to change notification settings - Fork 164
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
xml parsing error while setting the animations #33
Comments
Hi, actionButton.setShowAnimation(getResources().getAnimation(R.anim.fab_fade_in));
actionButton.setShowAnimation(ActionButton.Animations.FADE_IN); and actually it works well in the demo application. Please provide the full code example, which contains the ActionButton object instantiation, setting the animation type and forcing its playing. |
I'm using android version 4.0.4 Heres the code:
|
Why are you setting showAnimation twice? You can choose between either of these 2 methods that you are using |
You mean either mActionButton.setShowAnimation(getResources().getAnimation(R.anim.fab_fade_in)); or mActionButton.setShowAnimation(ActionButton.Animations.FADE_IN); ? I tried running only mActionButton.setShowAnimation(ActionButton.Animations.FADE_IN); |
Post a stacktrace here please |
It's resolved now. I thought that the animation would take place automatically when I scrolled. Just realised that it works if I implement my scroll listeners. My bad. Thanks :D |
Great |
Hi,
Its a great library that you've made. It helped a lot :)
But when I tried to set the animation to the button using :
actionButton.setShowAnimation(getResources().getAnimation(R.anim.fab_fade_in));
actionButton.setShowAnimation(ActionButton.Animations.FADE_IN);
it throws an error saying cannot resolve method setShowAnimation(android.content.res.xmlResourseParser)
I guess I'm not implementing it correctly. Any help would be appreciated.
(I'm using android api level 15)
The text was updated successfully, but these errors were encountered: