Code example for Shape

Methods: draw

0
		 
		// bottom etched line. 
		if (mBottomEtchedPaint != null) shape.draw(canvas, mBottomEtchedPaint);
		canvas.restore(); canvas.save();	
		 
		// separator. 
		canvas.concat(getSeparatorPaintMatrix(bounds));
		shape.draw(canvas, mSeparatorPaint);
		canvas.restore(); canvas.save();
		 
        // top etched line. 
		canvas.concat(getTopEtchedPaintMatrix(bounds));
		if (mTopEtchedPaint != null) shape.draw(canvas, mTopEtchedPaint);
		canvas.restore(); canvas.save();
		 
		// background. 
		canvas.concat(getBackgroundPaintMatrix(bounds));
		shape.draw(canvas, mBackgroundPaint);
		canvas.restore(); canvas.save();
		 
		// selected. 
		canvas.concat(getSelectedPaintMatrix(bounds));
		if (mSelectedPaint != null) shape.draw(canvas, mSelectedPaint);
	} 
}