public static class CircleBitmapDisplayer.CircleDrawable
extends android.graphics.drawable.Drawable
限定符和类型 | 字段和说明 |
---|---|
protected android.graphics.BitmapShader |
bitmapShader |
protected android.graphics.RectF |
mBitmapRect |
protected android.graphics.RectF |
mRect |
protected android.graphics.Paint |
paint |
protected float |
radius |
protected android.graphics.Paint |
strokePaint |
protected float |
strokeRadius |
protected float |
strokeWidth |
构造器和说明 |
---|
CircleDrawable(android.graphics.Bitmap bitmap,
Integer strokeColor,
float strokeWidth) |
限定符和类型 | 方法和说明 |
---|---|
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) |
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintMode, setVisible, unscheduleSelf
protected float radius
protected final android.graphics.RectF mRect
protected final android.graphics.RectF mBitmapRect
protected final android.graphics.BitmapShader bitmapShader
protected final android.graphics.Paint paint
protected final android.graphics.Paint strokePaint
protected final float strokeWidth
protected float strokeRadius
public CircleDrawable(android.graphics.Bitmap bitmap, Integer strokeColor, float strokeWidth)
protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange
在类中 android.graphics.drawable.Drawable
public void draw(android.graphics.Canvas canvas)
draw
在类中 android.graphics.drawable.Drawable
public int getOpacity()
getOpacity
在类中 android.graphics.drawable.Drawable
public void setAlpha(int alpha)
setAlpha
在类中 android.graphics.drawable.Drawable
public void setColorFilter(android.graphics.ColorFilter cf)
setColorFilter
在类中 android.graphics.drawable.Drawable