public class ColorDrawable extends Drawable
Drawable.Callback, Drawable.ConstantState| Constructor and Description |
|---|
ColorDrawable() |
ColorDrawable(int color) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Canvas canvas) |
int |
getAlpha() |
int |
getChangingConfigurations() |
int |
getColor() |
Drawable.ConstantState |
getConstantState() |
int |
getOpacity() |
void |
inflate(Resources r,
org.xmlpull.v1.XmlPullParser parser,
AttributeSet attrs) |
void |
setAlpha(int alpha) |
void |
setColor(int color) |
void |
setColorFilter(ColorFilter colorFilter) |
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getCurrent, getIntrinsicHeight, getIntrinsicWidth, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, invalidateSelf, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setLevel, setState, setVisible, unscheduleSelfpublic ColorDrawable()
public ColorDrawable(int color)
public int getChangingConfigurations()
getChangingConfigurations in class Drawablepublic int getColor()
public void setColor(int color)
public int getAlpha()
public void setColorFilter(ColorFilter colorFilter)
setColorFilter in class Drawablepublic int getOpacity()
getOpacity in class Drawablepublic void inflate(Resources r, org.xmlpull.v1.XmlPullParser parser, AttributeSet attrs) throws org.xmlpull.v1.XmlPullParserException, IOException
inflate in class Drawableorg.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic Drawable.ConstantState getConstantState()
getConstantState in class DrawableCopyright © 2008-2013. All Rights Reserved.