public class InsetDrawable extends Drawable implements Drawable.Callback
Drawable.Callback, Drawable.ConstantState| Constructor and Description |
|---|
InsetDrawable(Drawable drawable,
int inset) |
InsetDrawable(Drawable drawable,
int insetLeft,
int insetTop,
int insetRight,
int insetBottom) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Canvas canvas) |
int |
getChangingConfigurations() |
Drawable.ConstantState |
getConstantState() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getOpacity() |
boolean |
getPadding(Rect padding) |
void |
inflate(Resources r,
org.xmlpull.v1.XmlPullParser parser,
AttributeSet attrs) |
void |
invalidateDrawable(Drawable who) |
boolean |
isStateful() |
Drawable |
mutate() |
protected void |
onBoundsChange(Rect bounds) |
protected boolean |
onStateChange(int[] state) |
void |
scheduleDrawable(Drawable who,
Runnable what,
long when) |
void |
setAlpha(int alpha) |
void |
setColorFilter(ColorFilter cf) |
boolean |
setVisible(boolean visible,
boolean restart) |
void |
unscheduleDrawable(Drawable who,
Runnable what) |
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getCurrent, getLevel, getMinimumHeight, getMinimumWidth, getState, getTransparentRegion, invalidateSelf, isVisible, jumpToCurrentState, onLevelChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setLevel, setState, unscheduleSelfpublic InsetDrawable(Drawable drawable, int inset)
public InsetDrawable(Drawable drawable, int insetLeft, int insetTop, int insetRight, int insetBottom)
public void inflate(Resources r, org.xmlpull.v1.XmlPullParser parser, AttributeSet attrs) throws org.xmlpull.v1.XmlPullParserException, IOException
inflate in class Drawableorg.xmlpull.v1.XmlPullParserExceptionIOExceptionpublic void invalidateDrawable(Drawable who)
invalidateDrawable in interface Drawable.Callbackpublic void scheduleDrawable(Drawable who, Runnable what, long when)
scheduleDrawable in interface Drawable.Callbackpublic void unscheduleDrawable(Drawable who, Runnable what)
unscheduleDrawable in interface Drawable.Callbackpublic int getChangingConfigurations()
getChangingConfigurations in class Drawablepublic boolean getPadding(Rect padding)
getPadding in class Drawablepublic boolean setVisible(boolean visible,
boolean restart)
setVisible in class Drawablepublic void setColorFilter(ColorFilter cf)
setColorFilter in class Drawablepublic int getOpacity()
getOpacity in class Drawablepublic boolean isStateful()
isStateful in class Drawableprotected boolean onStateChange(int[] state)
onStateChange in class Drawableprotected void onBoundsChange(Rect bounds)
onBoundsChange in class Drawablepublic int getIntrinsicWidth()
getIntrinsicWidth in class Drawablepublic int getIntrinsicHeight()
getIntrinsicHeight in class Drawablepublic Drawable.ConstantState getConstantState()
getConstantState in class DrawableCopyright © 2008-2013. All Rights Reserved.