public static class RoundedBitmapDisplayer.RoundedDrawable
extends android.graphics.drawable.Drawable
| Modifier and Type | Field and Description |
|---|---|
protected android.graphics.BitmapShader |
bitmapShader |
protected float |
cornerRadius |
protected int |
margin |
protected android.graphics.RectF |
mBitmapRect |
protected android.graphics.RectF |
mRect |
protected android.graphics.Paint |
paint |
| Constructor and Description |
|---|
RoundedBitmapDisplayer.RoundedDrawable(android.graphics.Bitmap bitmap,
int cornerRadius,
int margin) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(android.graphics.Canvas canvas) |
int |
getOpacity() |
protected void |
onBoundsChange(android.graphics.Rect bounds) |
void |
setAlpha(int alpha) |
void |
setColorFilter(android.graphics.ColorFilter cf) |
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getConstantState, getCurrent, getIntrinsicHeight, getIntrinsicWidth, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, inflate, invalidateSelf, isStateful, isVisible, jumpToCurrentState, mutate, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setLevel, setState, setVisible, unscheduleSelfprotected final float cornerRadius
protected final int margin
protected final android.graphics.RectF mRect
protected final android.graphics.RectF mBitmapRect
protected final android.graphics.BitmapShader bitmapShader
protected final android.graphics.Paint paint
public RoundedBitmapDisplayer.RoundedDrawable(android.graphics.Bitmap bitmap,
int cornerRadius,
int margin)
protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange in class android.graphics.drawable.Drawablepublic void draw(android.graphics.Canvas canvas)
draw in class android.graphics.drawable.Drawablepublic int getOpacity()
getOpacity in class android.graphics.drawable.Drawablepublic void setAlpha(int alpha)
setAlpha in class android.graphics.drawable.Drawablepublic void setColorFilter(android.graphics.ColorFilter cf)
setColorFilter in class android.graphics.drawable.DrawableCopyright © 2011-2015. All Rights Reserved.