Code example for ObjectAnimator

Methods: cancel, isRunning

0
    hideIndeterminateSlider(false); 
  } 
 
  private void animateCountTo(float paramFloat)
  { 
    if ((this.countAnimator != null) && (this.countAnimator.isRunning()))
      this.countAnimator.cancel();
    float[] arrayOfFloat = new float[2];
    arrayOfFloat[0] = this.animatedCount;
    arrayOfFloat[1] = paramFloat;
    this.countAnimator = ObjectAnimator.ofFloat(this, "animatedCount", arrayOfFloat);
    this.countAnimator.setDuration(300L);
    this.countAnimator.start();
  } 
 
  private int getBaseSliderWidth() 
  { 
    return Math.max((int)(getResources().getDisplayMetrics().widthPixels / this.animatedCount), 40);
  } 
 
  private void hideIndeterminateSlider(boolean paramBoolean)