public final class ShapeDrawableBuilder
extends java.lang.Object
| Constructor and Description |
|---|
ShapeDrawableBuilder(android.view.View view,
android.content.res.TypedArray typedArray,
IShapeDrawableStyleable styleable) |
public ShapeDrawableBuilder(android.view.View view,
android.content.res.TypedArray typedArray,
IShapeDrawableStyleable styleable)
public ShapeDrawableBuilder setShape(int shape)
public int getShape()
public ShapeDrawableBuilder setShapeWidth(int width)
public int getShapeWidth()
public ShapeDrawableBuilder setShapeHeight(int height)
public int getShapeHeight()
public ShapeDrawableBuilder setSolidColor(int color)
public int getSolidColor()
public ShapeDrawableBuilder setSolidPressedColor(java.lang.Integer color)
public java.lang.Integer getSolidPressedColor()
public ShapeDrawableBuilder setSolidCheckedColor(java.lang.Integer color)
public java.lang.Integer getSolidCheckedColor()
public ShapeDrawableBuilder setSolidDisabledColor(java.lang.Integer color)
public java.lang.Integer getSolidDisabledColor()
public ShapeDrawableBuilder setSolidFocusedColor(java.lang.Integer color)
public java.lang.Integer getSolidFocusedColor()
public ShapeDrawableBuilder setSolidSelectedColor(java.lang.Integer color)
public java.lang.Integer getSolidSelectedColor()
public ShapeDrawableBuilder setRadius(float radius)
public ShapeDrawableBuilder setRadius(float topLeftRadius, float topRightRadius, float bottomLeftRadius, float bottomRightRadius)
public float getTopLeftRadius()
public float getTopRightRadius()
public float getBottomLeftRadius()
public float getBottomRightRadius()
public ShapeDrawableBuilder setGradientColor(int[] color)
public int[] getGradientColor()
public boolean isGradientColor()
public void clearGradientColor()
public ShapeDrawableBuilder setUseLevel(boolean useLevel)
public boolean isUseLevel()
public ShapeDrawableBuilder setAngle(int angle)
public int getAngle()
public ShapeDrawableBuilder setGradientType(int type)
public int getGradientType()
public ShapeDrawableBuilder setCenterX(float x)
public float getCenterX()
public ShapeDrawableBuilder setCenterY(float y)
public float getCenterY()
public ShapeDrawableBuilder setGradientRadius(int radius)
public int getGradientRadius()
public ShapeDrawableBuilder setStrokeColor(int color)
public int getStrokeColor()
public ShapeDrawableBuilder setStrokePressedColor(java.lang.Integer color)
public java.lang.Integer getStrokePressedColor()
public ShapeDrawableBuilder setStrokeCheckedColor(java.lang.Integer color)
public java.lang.Integer getStrokeCheckedColor()
public ShapeDrawableBuilder setStrokeDisabledColor(java.lang.Integer color)
public java.lang.Integer getStrokeDisabledColor()
public ShapeDrawableBuilder setStrokeFocusedColor(java.lang.Integer color)
public java.lang.Integer getStrokeFocusedColor()
public ShapeDrawableBuilder setStrokeSelectedColor(java.lang.Integer color)
public java.lang.Integer getStrokeSelectedColor()
public ShapeDrawableBuilder setStrokeWidth(int width)
public int getStrokeWidth()
public ShapeDrawableBuilder setDashWidth(int width)
public int getDashWidth()
public ShapeDrawableBuilder setDashGap(int gap)
public int getDashGap()
public boolean isDashLineEnable()
public ShapeDrawableBuilder setInnerRadius(int radius)
public int getInnerRadius()
public ShapeDrawableBuilder setInnerRadiusRatio(float ratio)
public float getInnerRadiusRatio()
public ShapeDrawableBuilder setThickness(int size)
public int getThickness()
public ShapeDrawableBuilder setThicknessRatio(float ratio)
public float getThicknessRatio()
public boolean isShadowEnable()
public ShapeDrawableBuilder setShadowSize(int size)
public int getShadowSize()
public ShapeDrawableBuilder setShadowColor(int color)
public int getShadowColor()
public ShapeDrawableBuilder setShadowOffsetX(int offsetX)
public int getShadowOffsetX()
public ShapeDrawableBuilder setShadowOffsetY(int offsetY)
public int getShadowOffsetY()
public android.graphics.drawable.Drawable buildBackgroundDrawable()
public ShapeDrawable createShapeDrawable(int solidColor, int strokeColor)
public void intoBackground()