You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.
ViewPropertyAnimator.animate(view).alpha(0.0f); // does nothing pre-HC if view has background
... appears to do nothing on pre-HC (Gingerbread, specifically) if the view has a background. Specifically, a color background (ColorDrawable) -- I haven't tested other background drawables.
If I add a transformation such as a rotation ...
ViewPropertyAnimator.animate(view).alpha(0.0f).rotationBy(45f); // works fine
... then it all works fine. Also, if I remove the background from the view, it works fine even when only the alpha property is changed.
I've studied the code a bit, and it pretty much seems like the alpha animation is being done in the same way as the built-in, old-style AlphaAnimation. But the AlphaAnimation works fine, so I guess something is different.
The text was updated successfully, but these errors were encountered:
ViewPropertyAnimator.animate(view).alpha(0.0f); // does nothing pre-HC if view has background
... appears to do nothing on pre-HC (Gingerbread, specifically) if the view has a background. Specifically, a color background (ColorDrawable) -- I haven't tested other background drawables.
If I add a transformation such as a rotation ...
ViewPropertyAnimator.animate(view).alpha(0.0f).rotationBy(45f); // works fine
... then it all works fine. Also, if I remove the background from the view, it works fine even when only the alpha property is changed.
I've studied the code a bit, and it pretty much seems like the alpha animation is being done in the same way as the built-in, old-style AlphaAnimation.
¡ª
Reply to this email directly or view it on GitHub.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
A simple alpha animation ....
... appears to do nothing on pre-HC (Gingerbread, specifically) if the view has a background. Specifically, a color background (
ColorDrawable
) -- I haven't tested other background drawables.If I add a transformation such as a rotation ...
... then it all works fine. Also, if I remove the background from the view, it works fine even when only the alpha property is changed.
I've studied the code a bit, and it pretty much seems like the alpha animation is being done in the same way as the built-in, old-style
AlphaAnimation
. But theAlphaAnimation
works fine, so I guess something is different.The text was updated successfully, but these errors were encountered: