开发者

How to pause animation along with the activity?

开发者 https://www.devze.com 2023-03-31 23:01 出处:网络
need all your suggestions for this. I am implementing some basic animations in my activity . Now i am in a situation where i want to pause the activity along with the animations when i started the ac

need all your suggestions for this.

I am implementing some basic animations in my activity . Now i am in a situation where i want to pause the activity along with the animations when i started the acti开发者_如何学Cvity the animation also starts from that pause position.How can i achieve this?

sample code::

TranslateAnimation mAnimation=new TranslateAnimation(20, 875, 0, 50);
mAnimation.setDuration(3000);
mAnimation.setAnimationListener(this);
mRlCurAnswer.startAnimation(mAnimation);

Thanks..

0

精彩评论

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