android.graphics.drawable
Class ColorDrawable

java.lang.Object
  extended by android.graphics.drawable.Drawable
      extended by android.graphics.drawable.ColorDrawable

public class ColorDrawable
extends Drawable


Nested Class Summary
 
Nested classes/interfaces inherited from class android.graphics.drawable.Drawable
Drawable.Callback, Drawable.ConstantState
 
Constructor Summary
ColorDrawable()
           
ColorDrawable(int color)
           
 
Method Summary
 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)
           
 
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
 

Constructor Detail

ColorDrawable

public ColorDrawable()

ColorDrawable

public ColorDrawable(int color)
Method Detail

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.