Code example for ValueAnimator

Methods: setRepeatCount

0
    public void setInterpolator(TimeInterpolator timeinterpolator) {
        mAnimator.setInterpolator(timeinterpolator);
    } 
 
    public void setRepeatCount(int i) {
        mAnimator.setRepeatCount(i);
    } 
 
    public void setRepeatMode(int i) {
        mAnimator.setRepeatMode(i);
    } 
 
    public void setStartDelay(long l) {
        mAnimator.setStartDelay(l);
    } 
 
    public void start() { 
        cancelAnimator(mView);
        Animation animation = mView.getAnimation();
        if(animation != null)
            animation.cancel();