Code example for Animator

Methods: addListenersetDurationstart, setStartDelay

0
        oar.addUpdateListener(this);
        return oar;
    } 
     
    private void startAnimation(Animator ani, long duration) {
        ani.setDuration(duration);
        ani.setStartDelay(500);
        if (listener != null) ani.addListener(listener);
        ani.start();
    } 
     
    @Override 
    protected void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        dot.draw(canvas);
    } 
 
    @Override 
    public void onAnimationUpdate(ValueAnimator animation) {
        invalidate();
Stop searching for code, let great code find you!  Add Codota to your java IDE