Code example for PathMeasure

0
	public DrawView(Context c) {
	    super(c);
	   // size=size1; 
	   // color=color1; 
	    mPath = new Path();
	    mPM = new PathMeasure(mPath, false);
	    mBitmapPaint = new Paint(Paint.DITHER_FLAG);
	    mPaint = new Paint();
	    mPaint.setAntiAlias(true);
	    mPaint.setDither(true);
	    System.out.println("Pcolor1"+Pcolor1);
	    mPaint.setColor(Color.parseColor(Pcolor1));
	    mPaint.setStyle(Paint.Style.STROKE);
	    mPaint.setStrokeJoin(Paint.Join.ROUND);
	    mPaint.setStrokeCap(Paint.Cap.ROUND);
	    mPaint.setStrokeWidth(size);
	} 
	 
	public DrawView(Context context, AttributeSet attrs) {
		 super(context, attrs);
		//color=color1;