Code example for PathShape

0
		mDrawabley = new ShapeDrawable(new PathShape(pathy, 160,120));
		mDrawabley.getPaint().setColor(0xff74AC23);
		mDrawabley.getPaint().setStyle(Paint.Style.STROKE);
		mDrawabley.setBounds(0, 160, 240, 259);
 
		mDrawablez = new ShapeDrawable(new PathShape(pathz, 160,120));
		mDrawablez.getPaint().setColor(0xff74AC23);
		mDrawablez.getPaint().setStyle(Paint.Style.STROKE);
		mDrawablez.setBounds(0, 260, 240, 320);
 
	} 
 
	protected void onDraw(Canvas canvas) {
 
		// int width = 300; 
		// int height = 50; 
 
		// if(x.length != 80) 
		// return; 
		// if(y.length != 80)