Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart Animation By Clicking #4

Merged
merged 3 commits into from
Dec 12, 2014
Merged

Conversation

tiensi
Copy link

@tiensi tiensi commented Nov 26, 2014

Hello, I added code to the demo that would allow users to reset animations that couldn't be replayed by tapping on the screen. This way small device users wont have to go back in order to replay an animation.

This was done by refactoring some of the onCreate code into a new "setUpById" method. This method is called in order to reset the original positions of the images that were animated. The FrameLayout containing all the Imageviews was given an Onclick method to call this setUpById method when the users want to replay an animation. An "isFinished" boolean determines whether or not the animation that can't be reset is completed or not.

Unfortunately, only transferAnimation does not replay when tapped

@umairvatao
Copy link
Contributor

Thanks for your contribution, appreciate it!!

umairvatao added a commit that referenced this pull request Dec 12, 2014
[Merge] Restart Animation By Clicking
@umairvatao umairvatao merged commit 1c1c057 into 2359media:master Dec 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants