Code example for Shape

Methods: draw

0
				return mStrokePaint;
			} 
 
			@Override 
			protected void onDraw(Shape s, Canvas c, Paint p) {
				s.draw(c, p);
				s.draw(c, mStrokePaint);
			} 
		} 
 
		public SampleView(Context context) {
			super(context);
			setFocusable(true);
 
			float[] outerR = new float[] { 12, 12, 12, 12, 0, 0, 0, 0 };
			RectF inset = new RectF(6, 6, 6, 6);
			float[] innerR = new float[] { 12, 12, 0, 0, 12, 12, 0, 0 };
 
			Path path = new Path();
			path.moveTo(50, 0);