public class BitmapDrawable extends Drawable
Drawable.Callback, Drawable.ConstantState| Constructor and Description |
|---|
BitmapDrawable()
Deprecated.
|
BitmapDrawable(Bitmap bitmap)
Deprecated.
|
BitmapDrawable(InputStream is)
Deprecated.
|
BitmapDrawable(Resources res) |
BitmapDrawable(Resources res,
Bitmap bitmap) |
BitmapDrawable(Resources res,
InputStream is) |
BitmapDrawable(Resources res,
String filepath) |
BitmapDrawable(String filepath)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Canvas canvas) |
Bitmap |
getBitmap() |
int |
getChangingConfigurations() |
Drawable.ConstantState |
getConstantState() |
int |
getGravity() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
int |
getOpacity() |
Paint |
getPaint() |
Shader.TileMode |
getTileModeX() |
Shader.TileMode |
getTileModeY() |
void |
inflate(Resources r,
org.xmlpull.v1.XmlPullParser parser,
AttributeSet attrs) |
Drawable |
mutate() |
protected void |
onBoundsChange(Rect bounds) |
void |
setAlpha(int alpha) |
void |
setAntiAlias(boolean aa) |
void |
setColorFilter(ColorFilter cf) |
void |
setDither(boolean dither) |
void |
setFilterBitmap(boolean filter) |
void |
setGravity(int gravity) |
void |
setTargetDensity(Canvas canvas) |
void |
setTargetDensity(DisplayMetrics metrics) |
void |
setTargetDensity(int density) |
void |
setTileModeX(Shader.TileMode mode) |
void |
setTileModeXY(Shader.TileMode xmode,
Shader.TileMode ymode) |
void |
setTileModeY(Shader.TileMode mode) |
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getCurrent, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, invalidateSelf, isStateful, isVisible, jumpToCurrentState, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setLevel, setState, setVisible, unscheduleSelf@Deprecated public BitmapDrawable()
public BitmapDrawable(Resources res)
@Deprecated public BitmapDrawable(Bitmap bitmap)
@Deprecated public BitmapDrawable(String filepath)
@Deprecated public BitmapDrawable(InputStream is)
public BitmapDrawable(Resources res, InputStream is)
public final Paint getPaint()
public final Bitmap getBitmap()
public void setTargetDensity(Canvas canvas)
public void setTargetDensity(DisplayMetrics metrics)
public void setTargetDensity(int density)
public int getGravity()
public void setGravity(int gravity)
public void setAntiAlias(boolean aa)
public void setFilterBitmap(boolean filter)
setFilterBitmap in class Drawablepublic Shader.TileMode getTileModeX()
public Shader.TileMode getTileModeY()
public void setTileModeX(Shader.TileMode mode)
public final void setTileModeY(Shader.TileMode mode)
public void setTileModeXY(Shader.TileMode xmode, Shader.TileMode ymode)
public int getChangingConfigurations()
getChangingConfigurations in class Drawableprotected void onBoundsChange(Rect bounds)
onBoundsChange in class Drawablepublic void setColorFilter(ColorFilter cf)
setColorFilter 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 int getIntrinsicWidth()
getIntrinsicWidth in class Drawablepublic int getIntrinsicHeight()
getIntrinsicHeight in class Drawablepublic int getOpacity()
getOpacity in class Drawablepublic final Drawable.ConstantState getConstantState()
getConstantState in class DrawableCopyright © 2008-2013. All Rights Reserved.