Code example for FrameLayout

Methods: getMeasuredHeight

0
                    // FIXME: known problem - ERASE function will not work with this image 
                    mBitmap = mBitmap.copy(Bitmap.Config.ARGB_8888, true);
                } 
            } else { 
                // If called a second time this will clear the screen 
                mBitmap = Bitmap.createBitmap(mDisplay.getWidth(), mDrawFrame.getMeasuredHeight(), Bitmap.Config.ARGB_8888);
            } 
                         
            mCanvas = new Canvas(mBitmap);
            mPath = new Path();
            mBitmapPaint = new Paint(Paint.DITHER_FLAG);
        } 
         
        @Override 
        protected void onDraw(Canvas canvas) 
        { 
            canvas.drawColor(0xFFAAAAAA);            
            canvas.drawBitmap(mBitmap, 0, 0, mBitmapPaint);            
            canvas.drawPath(mPath, mPaint);
        }