android.graphics.drawable
Class GradientDrawable.GradientState
java.lang.Object
android.graphics.drawable.Drawable.ConstantState
android.graphics.drawable.GradientDrawable.GradientState
- Enclosing class:
- GradientDrawable
static final class GradientDrawable.GradientState
- extends Drawable.ConstantState
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mChangingConfigurations
public int mChangingConfigurations
mShape
public int mShape
mGradient
public int mGradient
mOrientation
public GradientDrawable.Orientation mOrientation
mColors
public int[] mColors
mPositions
public float[] mPositions
mHasSolidColor
public boolean mHasSolidColor
mSolidColor
public int mSolidColor
mStrokeWidth
public int mStrokeWidth
mStrokeColor
public int mStrokeColor
mStrokeDashWidth
public float mStrokeDashWidth
mStrokeDashGap
public float mStrokeDashGap
mRadius
public float mRadius
mRadiusArray
public float[] mRadiusArray
mPadding
public Rect mPadding
mWidth
public int mWidth
mHeight
public int mHeight
mInnerRadius
public float mInnerRadius
mThickness
public float mThickness
GradientDrawable.GradientState
GradientDrawable.GradientState()
GradientDrawable.GradientState
GradientDrawable.GradientState(GradientDrawable.Orientation orientation,
int[] colors)
newDrawable
public Drawable newDrawable()
- Specified by:
newDrawable in class Drawable.ConstantState
getChangingConfigurations
public int getChangingConfigurations()
- Specified by:
getChangingConfigurations in class Drawable.ConstantState
setShape
public void setShape(int shape)
setGradientType
public void setGradientType(int gradient)
setGradientCenter
public void setGradientCenter(float x,
float y)
setSolidColor
public void setSolidColor(int argb)
setStroke
public void setStroke(int width,
int color)
setStroke
public void setStroke(int width,
int color,
float dashWidth,
float dashGap)
setCornerRadius
public void setCornerRadius(float radius)
setCornerRadii
public void setCornerRadii(float[] radii)
setSize
public void setSize(int width,
int height)
setGradientRadius
public void setGradientRadius(float gradientRadius)
Please submit a feedback, bug or feature