Example #1
0
  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
    }
  }
Example #2
0
 @Override
 public void onTimeUpdate(TimeAnimator animation, long totalTime, long deltaTime) {
   animationTick(deltaTime);
 }