android.graphics.drawable
Class ColorDrawable
java.lang.Object
android.graphics.drawable.Drawable
android.graphics.drawable.ColorDrawable
public class ColorDrawable
- extends Drawable
Methods inherited from class android.graphics.drawable.Drawable |
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, unscheduleSelf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorDrawable
public ColorDrawable()
ColorDrawable
public ColorDrawable(int color)
getChangingConfigurations
public int getChangingConfigurations()
- Overrides:
getChangingConfigurations
in class Drawable
draw
public void draw(Canvas canvas)
- Specified by:
draw
in class Drawable
getColor
public int getColor()
setColor
public void setColor(int color)
getAlpha
public int getAlpha()
setAlpha
public void setAlpha(int alpha)
- Specified by:
setAlpha
in class Drawable
setColorFilter
public void setColorFilter(ColorFilter colorFilter)
- Specified by:
setColorFilter
in class Drawable
getOpacity
public int getOpacity()
- Specified by:
getOpacity
in class Drawable
inflate
public void inflate(Resources r,
org.xmlpull.v1.XmlPullParser parser,
AttributeSet attrs)
throws org.xmlpull.v1.XmlPullParserException,
IOException
- Overrides:
inflate
in class Drawable
- Throws:
org.xmlpull.v1.XmlPullParserException
IOException
getConstantState
public Drawable.ConstantState getConstantState()
- Overrides:
getConstantState
in class Drawable
Copyright © 2008-2012. All Rights Reserved.