开发者

Android animation

开发者 https://www.devze.com 2023-01-07 17:48 出处:网络
i m really very fed up coding translate animation. actually my image is moving from one position to another but it is coming back to its actual position.

i m really very fed up coding translate animation. actually my image is moving from one position to another but it is coming back to its actual position.

can any body here provide me the code to move image from one position to another position without coming back. plsssssssssssssss开发者_JAVA百科sssssssss provide me the sollution.

thanks in ad=vance.


You are looking for this:

anim.setFillEnabled(true);
anim.setFillAfter(true);

or in XML

android:fillEnabled="true"
android:fillAfter="true"


Android animations only provide the transition. You need to code the final "view" yourself. That of course depends on how you implemented the original view in the first place.

0

精彩评论

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

关注公众号