Code example for Path

Methods: addArcmoveTo

0
		float widths[] = new float[1];
		mScalePaint.getTextWidths("...", 0, 1, widths);
		mLetterWidth = widths[0];
 
		// create a curved path for drawing the text scale on 
		mScalePath = new Path();
 
		float h = inth;
		float w = intw;
 
		float middle = h*0.47f;
		float sidePadding = w*0.02f;
		float ovalHeight = h*0.14f;
 
		mScalePath.moveTo(sidePadding, middle);
		mScalePath.addArc(new RectF(sidePadding,
				middle-ovalHeight,
				w-sidePadding,
				middle+ovalHeight),
				150, -120);