public class RoundedDrawable
extends android.graphics.drawable.Drawable
Constructor and Description |
---|
RoundedDrawable(android.graphics.Bitmap bitmap,
float cornerRadius) |
RoundedDrawable(android.graphics.Bitmap bitmap,
float cornerRadius,
int margin) |
Modifier and Type | Method and Description |
---|---|
void |
draw(android.graphics.Canvas canvas) |
int |
getIntrinsicWidth() |
int |
getIntrinsicHeight() |
int |
getOpacity() |
protected void |
onBoundsChange(android.graphics.Rect bounds) |
void |
setAlpha(int alpha) |
void |
setColorFilter(android.graphics.ColorFilter colorFilter) |
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getAlpha, getBounds, getCallback, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getChangingConfigurations, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOutline, getPadding, getState, getTransparentRegion, inflate, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, setAutoMirrored, setBounds, setBounds, setCallback, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setChangingConfigurations, setLayoutDirection, setLevel, setState, setTint, setTintList, setTintMode, setVisible, scheduleSelf, unscheduleSelf
public RoundedDrawable(android.graphics.Bitmap bitmap, float cornerRadius)
public RoundedDrawable(android.graphics.Bitmap bitmap, float cornerRadius, int margin)
protected void onBoundsChange(android.graphics.Rect bounds)
onBoundsChange
in class android.graphics.drawable.Drawable
public void draw(android.graphics.Canvas canvas)
draw
in class android.graphics.drawable.Drawable
public void setAlpha(int alpha)
setAlpha
in class android.graphics.drawable.Drawable
public void setColorFilter(android.graphics.ColorFilter colorFilter)
setColorFilter
in class android.graphics.drawable.Drawable
public int getOpacity()
getOpacity
in class android.graphics.drawable.Drawable
public int getIntrinsicWidth()
getIntrinsicWidth
in class android.graphics.drawable.Drawable
public int getIntrinsicHeight()
getIntrinsicHeight
in class android.graphics.drawable.Drawable