Code example for NinePatchDrawable

Methods: setBounds, draw

0
			selshadow.setBounds(cardDim);
			selshadow.draw(c);
		} 
		else 
		{ 
			shadow.setBounds(cardDim);
			shadow.draw(c);
		} 
		cardDim.inset(2, 3);
		c.drawRect(cardDim, fillStyle);
		updateTextStyle(); 
		c.drawText(cardText, cardDim.centerX(), cardDim.centerY(), textStyle);
		//drawDebugPoint(cardDim.left + (int) offsetx, cardDim.top + (int) offsety, c); 
	} 
	 
	public void drawDebugPoint(int x, int y, Canvas c) {
		c.drawRect(new Rect(x,y,x+10,y+10), textStyle);
	} 
	 
	public void updateTextStyle() 
	{