library/src/main/java/com/lsxiao/library/DraggableLayout.java
/**
     * draw Bezier curve
     *
     * @param canvas Canvas
     * @param paint  Paint
     */
draw Bezier curve
@param canvas Canvas
@param paint  Paint
draw Bezier curve @param canvas Canvas @param paint Paint
public void drawBezierCurve(Canvas canvas, Paint paint) {
        mPath.reset();
        mPath.moveTo(mP1.x, mP1.y);
        mPath.quadTo(mCP1.x, mCP1.y, mP2.x, mP2.y);
        mPath.lineTo(mP4.x, mP4.y);
        mPath.quadTo(mCP2.x, mCP2.y, mP3.x, mP3.y);
        mPath.lineTo(mP1.x, mP1.y);
        mPath.close();
        canvas.drawPath(mPath, paint);
    }
public void drawBezierCurve ( Canvas canvas , Paint paint ) { mPath . reset ( ) ; mPath . moveTo ( mP1 . x , mP1 . y ) ; mPath . quadTo ( mCP1 . x , mCP1 . y , mP2 . x , mP2 . y ) ; mPath . lineTo ( mP4 . x , mP4 . y ) ; mPath . quadTo ( mCP2 . x , mCP2 . y , mP3 . x , mP3 . y ) ; mPath . lineTo ( mP1 . x , mP1 . y ) ; mPath . close ( ) ; canvas . drawPath ( mPath , paint ) ; }
draw Bezier curve
 @param canvas Canvas
 @param paint  Paint
draw Bezier curve @param canvas Canvas @param paint Paint