开发者

Android animation

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜