Code example for RectShape

0
public class TiTableViewColorSelector extends ShapeDrawable {
	protected int color;
 
	public TiTableViewColorSelector(int color) {
		this.color = color;
		setShape(new RectShape());
	} 
 
	@Override 
	public void draw(Canvas canvas) {
		getPaint().setColor(this.color);
		super.draw(canvas);
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE