Code example for PathShape

0
		path1.lineTo(150+20, 80+120-50);
		/* ʹÕâЩµã¹¹³É·â±ÕµÄ¶à±ßÐÎ */ 
		path1.close();
		 
		//PathShapeºóÃæÁ½¸ö²ÎÊý·Ö±ðÊÇ¿í¶ÈºÍ¸ß¶È 
		mShapeDrawable = new ShapeDrawable(new PathShape(path1,150,150));
		 
		//µÃµ½»­±Êpaint¶ÔÏó²¢ÉèÖÃÆäÑÕÉ« 
		mShapeDrawable.getPaint().setColor(Color.BLUE);
		 
		/* ÉèÖÃͼÏñÏÔʾµÄÇøÓò */ 
		mShapeDrawable.setBounds(100, 170, 200, 280);
		 
		/* »æÖÆͼÏñ */ 
		mShapeDrawable.draw(canvas);
	} 
}