Code example for ObjectAnimator

Methods: cancel

0
    } 
 
    @Override 
    protected void onDestroy() { 
        super.onDestroy(); 
        mAnimator.cancel();
    } 
 
    static class BitmapsView extends View {
        private final Paint mBitmapPaint;
        private final Bitmap mBitmap1;
        private final int[] mPixels;
 
        private int mOffset;
        private int mSlice;
        private static final int[] mShifts = new int[] { 16, 8, 0 };
 
        BitmapsView(Context c) {
            super(c);
 
            mBitmap1 = Bitmap.createBitmap(PATTERN_SIZE, PATTERN_SIZE, Bitmap.Config.ARGB_8888);