Code example for Canvas

Methods: clipPath, drawPaint, getHeight, getWidth

0
        mGestureDetector = new GestureDetector(context, listener);
    } 
 
    /** 
     * Sets the OnTapListener. 
     */ 
    public void setOnTapListener(OnTapListener listener) {
        mOnTapListener = listener;
    } 
 
    /** 
     * Sets the OnVisibilityChangedListener. 
     */ 
    public void setOnVisibilityChangedListener(OnVisibilityChangedListener listener) {
        mOnVisibilityChangedListener = listener;
    } 
 
    /** 
     * Sets the bitmap to be used for the zoomed view. 
     */ 
    public void setBitmap(Bitmap bitmap) {