android.graphics.drawable
Class NinePatchDrawable
java.lang.Object
android.graphics.drawable.Drawable
android.graphics.drawable.NinePatchDrawable
public class NinePatchDrawable
- extends Drawable
| Methods inherited from class android.graphics.drawable.Drawable |
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getCurrent, getLevel, getState, invalidateSelf, isStateful, isVisible, jumpToCurrentState, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setLevel, setState, setVisible, unscheduleSelf |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NinePatchDrawable
@Deprecated
public NinePatchDrawable(Bitmap bitmap,
byte[] chunk,
Rect padding,
String srcName)
- Deprecated.
NinePatchDrawable
public NinePatchDrawable(Resources res,
Bitmap bitmap,
byte[] chunk,
Rect padding,
String srcName)
NinePatchDrawable
@Deprecated
public NinePatchDrawable(NinePatch patch)
- Deprecated.
NinePatchDrawable
public NinePatchDrawable(Resources res,
NinePatch patch)
setTargetDensity
public void setTargetDensity(Canvas canvas)
setTargetDensity
public void setTargetDensity(DisplayMetrics metrics)
setTargetDensity
public void setTargetDensity(int density)
draw
public void draw(Canvas canvas)
- Specified by:
draw in class Drawable
getChangingConfigurations
public int getChangingConfigurations()
- Overrides:
getChangingConfigurations in class Drawable
getPadding
public boolean getPadding(Rect padding)
- Overrides:
getPadding in class Drawable
setAlpha
public void setAlpha(int alpha)
- Specified by:
setAlpha in class Drawable
setColorFilter
public void setColorFilter(ColorFilter cf)
- Specified by:
setColorFilter in class Drawable
setDither
public void setDither(boolean dither)
- Overrides:
setDither in class Drawable
setFilterBitmap
public void setFilterBitmap(boolean filter)
- Overrides:
setFilterBitmap 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
getPaint
public Paint getPaint()
getIntrinsicWidth
public int getIntrinsicWidth()
- Overrides:
getIntrinsicWidth in class Drawable
getIntrinsicHeight
public int getIntrinsicHeight()
- Overrides:
getIntrinsicHeight in class Drawable
getMinimumWidth
public int getMinimumWidth()
- Overrides:
getMinimumWidth in class Drawable
getMinimumHeight
public int getMinimumHeight()
- Overrides:
getMinimumHeight in class Drawable
getOpacity
public int getOpacity()
- Specified by:
getOpacity in class Drawable
getTransparentRegion
public Region getTransparentRegion()
- Overrides:
getTransparentRegion in class Drawable
getConstantState
public Drawable.ConstantState getConstantState()
- Overrides:
getConstantState in class Drawable
mutate
public Drawable mutate()
- Overrides:
mutate in class Drawable
Copyright © 2008-2012. All Rights Reserved.