I want to create a splash screen for Android, where the logo will be animated twice:
- Fly from left to center
- After 1 second, fly from the center to the right
The first one works well:
Animation animLeft2Center = AnimationUtils.loadAnimation(this, R.anim.translate_left_to_center);
mLogo.startAnimation(animLeft2Center);
But I do not get the second animation.
Animation animCenter2Right = AnimationUtils.loadAnimation(this, R.anim.translate_center_to_right);
mLogo.startAnimation(animCenter2Right);
How to set a delay of 1 second between both, and then start the second animation?
I could not find something like setStartDelay, and also did not start both animations one after another.
Zoker source
share