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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -