Android: Second 180 degree rotation of imageview around Y mirrors the image -


i'm trying make imageview rotate around it's y axis, similar card flipping, should have same picture on both sides.

to this, use objectanimator in animationset (though happens when y rotation animation in set, when it's combined other animations) rotate 0 -180 around y axis. works fine first time. however, if click again, image mirrored rotate 180 degrees around y axis.

how come image gets mirrored/reversed before animating? current idea retains property, while first goes 0 -180, next time jump -180 0, rotate 0 -180 again. i'm not sure if cause, if is, how can work around , prevent happening?

thanks!

if understand right, happens because objectanimator doesn't applies final value itself. have use animationlistener , onanimationend save view's state.


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -