开发者

how to rotate an image back and forth in android

开发者 https://www.devze.com 2023-02-10 06:43 出处:网络
hai i want to rotate an image back and forth. 开发者_高级运维But now it is happening only one side.After the image reach the destination suddenly it will come back to its original position.I am using

hai i want to rotate an image back and forth. 开发者_高级运维But now it is happening only one side.After the image reach the destination suddenly it will come back to its original position.I am using animation for rotation. Somebody help me to do this.


You have to enable fill on your animation, then enable "fill after." You can do this by calling setFillEnabled(true) then setFillAfter(true).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号