how do i start animation after some time in android? -
i want start second animation after end of first animation.
this have done far
<set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/linear_interpolator"> <translate android:toydelta="50%p" android:duration="6000" android:fillenabled="false" android:startoffset="7000" android:fillafter="false"/> </set>
any appriciated. tia
use animationlistener
on first animation, , when completed, start second animation.
animation1.setanimationlistener(new animation.animationlistener() { @override public void onanimationstart(animation animation) { } @override public void onanimationend(animation animation) { // start second animation. } @override public void onanimationrepeat(animation animation) { } });
Comments
Post a Comment