public void fling(float vel, boolean always) { if (DEBUG) LOG("fling: vel=%.3f, this=%s", vel, this); mVel = vel; if (always || mVel != 0) { animationTick(0); // begin the animation } }
@Override public void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime) { animationTick(deltaTime); }