Code example for PaintDrawable

0
	} 
 
	public void setBackgroundColor(int backgroundColor) {
		//this.background = new ColorDrawable(backgroundColor); 
		releaseDelegate(); 
		this.background = new PaintDrawable(backgroundColor);
	} 
 
	public void setBackgroundImage(Bitmap backgroundImage) {
		releaseDelegate(); 
		this.background = new BitmapDrawable(backgroundImage);
	} 
 
	public void setBackgroundDrawable(Drawable drawable) {
		releaseDelegate(); 
		this.background = drawable;
		onStateChange(getState());
	} 
 
	@Override 
	public void setAlpha(int alpha)