Code example for NinePatch

Methods: draw

0
	@Override 
	protected void onDraw(Canvas canvas) 
    { 
		if(indicatorBitmap != null)
		{ 
		    ninePatch.draw(canvas, rectD);			    
		} 
		/*if(getContext().getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) 
		{ 
			//use topY 
			if(indicatorBitmap != null) 
			{ 
			    //canvas.drawBitmap(indicatorBitmap, 0, topY, null); 
			    ninePatch.draw(canvas, rectD);			     
			} 
		} 
		else 
		{ 
			//use topX 
			if(indicatorBitmap != null) 
Stop searching for code, let great code find you!  Add Codota to your java IDE