Code example for ValueAnimator

Methods: cancel

0
    } 
 
    public void setValue(int value) {
        this.waitingMode = false;
        if (this.animatorWaiting != null) {
            this.animatorWaiting.cancel();
            this.animatorWaiting = null;
        } 
 
        this.value = value;
        computeTextPosition(); 
 
        this.invalidate();
    } 
 
    @Override 
    protected void onSizeChanged(int w, int h, int oldw, int oldh) {
        super.onSizeChanged(w, h, oldw, oldh);
 
        radiusOuter = (Math.min(w, h) >> 1) * factorOuter;
        radiusInner = radiusOuter * factorInner;