Code example for ObjectAnimator

Methods: addUpdateListener, setDuration, start

0
    public void onFinishInflate() { 
        super.onFinishInflate(); 
        if (DEBUG) setWillNotDraw(false);
    } 
 
    @Override 
    public void onDraw(android.graphics.Canvas c) {
        super.onDraw(c);
        if (DEBUG) logLayoutTransition();
        if (DEBUG) {
            //Slog.d(TAG, "onDraw: canvas height: " + c.getHeight() + "px; measured height: " 
            //        + getMeasuredHeight() + "px"); 
            c.save();
            c.clipRect(6, 6, c.getWidth() - 6, getMeasuredHeight() - 6,
                    android.graphics.Region.Op.DIFFERENCE);
            c.drawColor(0xFFFF8000);
            c.restore();
        } 
    } 
 
    @Override