ColorDrawable

Class of android.graphics.drawable · ColorDrawable.java · Android's reference

public class ColorDrawable extends Drawable

ColorDrawable ← Drawable

A rectangle of one color.

Constructors

public ColorDrawable() empty body source
public ColorDrawable(int color) source

Methods

public void draw(Canvas canvas) source
public void inflate(android.content.res.Resources r, org.xmlpull.v1.XmlPullParser parser, android.util.AttributeSet attrs, android.content.res.Resources.Theme theme) throws org.xmlpull.v1.XmlPullParserException, java.io.IOException source
public int getColor() source
public void setColor(int color) source
public int getAlpha() source
public void setAlpha(int alpha) source
public void setColorFilter(ColorFilter colorFilter) source
public ColorFilter getColorFilter() source
public int getOpacity() source
public void getOutline(Outline outline) source
public ConstantState getConstantState() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.