Code example for NinePatch

Methods: draw

0
		if(getContext().getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE)
		{ 
			//use topY 
			if(indicatorBitmap != null)
			{ 
			    ninePatch.draw(canvas, rectD);			    
			} 
		} 
		else 
		{ 
			//use topX 
			if(indicatorBitmap != null)
			{ 
				ninePatch.draw(canvas, rectD);
			} 
		} 
    } 
	 
	 
	public void refreshProcess(int width, int height, float process){
		leftX = 0;