-
public class RoundedDrawable extends Drawable
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringTAGpublic final static intDEFAULT_BORDER_COLOR
-
Constructor Summary
Constructors Constructor Description RoundedDrawable(Bitmap bitmap)
-
Method Summary
-
Methods inherited from class android.graphics.drawable.Drawable
applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, draw, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getIntrinsicHeight, getIntrinsicWidth, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOpacity, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, hasFocusStateSpecified, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isStateful, isVisible, jumpToCurrentState, mutate, onLayoutDirectionChanged, resolveOpacity, scheduleSelf, setAlpha, setAutoMirrored, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintBlendMode, setTintList, setTintMode, setVisible, unscheduleSelf -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
RoundedDrawable
RoundedDrawable(Bitmap bitmap)
-
-
Method Detail
-
fromBitmap
static RoundedDrawable fromBitmap(Bitmap bitmap)
-
fromDrawable
static Drawable fromDrawable(Drawable drawable)
-
drawableToBitmap
static Bitmap drawableToBitmap(Drawable drawable)
-
isStateful
boolean isStateful()
-
getOpacity
int getOpacity()
-
setAlpha
void setAlpha(int alpha)
-
setColorFilter
void setColorFilter(ColorFilter cf)
-
setDither
void setDither(boolean dither)
-
setFilterBitmap
void setFilterBitmap(boolean filter)
-
getIntrinsicWidth
int getIntrinsicWidth()
-
getIntrinsicHeight
int getIntrinsicHeight()
-
getCornerRadius
float getCornerRadius()
-
setCornerRadius
RoundedDrawable setCornerRadius(float radius)
-
getBorderWidth
float getBorderWidth()
-
setBorderWidth
RoundedDrawable setBorderWidth(float width)
-
getBorderColor
int getBorderColor()
-
setBorderColor
RoundedDrawable setBorderColor(int color)
-
getBorderColors
ColorStateList getBorderColors()
-
setBorderColor
RoundedDrawable setBorderColor(ColorStateList colors)
-
isOval
boolean isOval()
-
setOval
RoundedDrawable setOval(boolean oval)
-
getScaleType
ImageView.ScaleType getScaleType()
-
setScaleType
RoundedDrawable setScaleType(ImageView.ScaleType scaleType)
-
getTileModeX
Shader.TileMode getTileModeX()
-
setTileModeX
RoundedDrawable setTileModeX(Shader.TileMode tileModeX)
-
getTileModeY
Shader.TileMode getTileModeY()
-
setTileModeY
RoundedDrawable setTileModeY(Shader.TileMode tileModeY)
-
-
-
-