Code example for PaintDrawable

public class SelectiveColor extends Color { 
	private final static PaintDrawable SELECTED_COLOR_DRAWABLE = new PaintDrawable(Color.GREEN); 
	private final static PaintDrawable UNSELECTED_COLOR_DRAWABLE = new PaintDrawable(Color.TRANSPARENT); 
	 * Return an {@link PaintDrawable} of a {@link Color} indicates selected components 
	 * @return solid color {@link PaintDrawable} of selected components 
	public static PaintDrawable getSelectedDrawable() 
	 * Return an {@link PaintDrawable} of a {@link ColorStateList} indicates unselected components  
	 * @return solid color {@link PaintDrawable} of unselected components 
Experience pair programming with AI  Get Codota for Java