Code example for Path

Methods: isEmptylineToreset

0
    private void touch_up() { 
        if ( mEventListener != null ) {
            mEventListener.actionUp();
        } 
 
        if ( mPath.isEmpty() ) {
            // If this was just a touch, make sure to draw a point 
            mPath.addCircle( mLastX, mLastY, STROKE_WIDTH/2, Path.Direction.CW );
        } else { 
            // Finish up the path 
            mPath.lineTo( mLastX, mLastY );
        } 
        mCanvas.drawPath( mPath, mFingerPaint );
        mPath.reset();
    } 
 
    public Bitmap getBitmap() {
        return mBitmap;
    } 
 
    public void setBitmap( Bitmap bitmap ) {