File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes A problem about clearAnimation() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "A problem about clearAnimation() method" Watch "A problem about clearAnimation() method" New topic

A problem about clearAnimation() method

Yi-Ru Cai

Joined: Jun 01, 2012
Posts: 4
I write a little App to make a textview rotate and translate and control the animation by two buttons.
And I use clearAnimation() to stop the animation ,but when I click the stop button , the textview stops and also disappears, is that normal?
What I want to do is when I stop the animation , the textview can go back to the position when the App starts.
If I can't do this function with clearAnimation() mehod , can you give me some hints for how to achieve this function?Thank you very much.
Here is my Activity Code:

and here is my animation XML:

I would approciate it you can help , and hope you can understand my poor English.
Best Regards,thank you
Darryl Burke

Joined: May 03, 2008
Posts: 5115

Please BeForthrightWhenCrossPostingToOtherSites

luck, db
There are no new questions, but there may be new answers.
Yi-Ru Cai

Joined: Jun 01, 2012
Posts: 4
Darryl Burke wrote:Please BeForthrightWhenCrossPostingToOtherSites

Sorry, I didn't notice that
I agree. Here's the link:
subject: A problem about clearAnimation() method
jQuery in Action, 3rd edition