@Implements(android.graphics.drawable.GradientDrawable.class) public class ShadowGradientDrawable extends ShadowDrawable
Constructor | Description |
---|---|
ShadowGradientDrawable() |
Modifier and Type | Method | Description |
---|---|---|
int |
getLastSetColor() |
Returns the color of this drawable as set by the last call to
setColor(int color) . |
int |
getStrokeColor() |
|
int |
getStrokeWidth() |
|
protected void |
setColor(int color) |
|
protected void |
setStroke(int width,
int color) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addCorruptStreamSource, clearCorruptStreamSources, createFromPath, createFromResourceId, createFromResourceStream, createFromStream, getAlpha, getCreatedFromResId, getInputStream, getIntrinsicHeight, getIntrinsicWidth, invalidateSelf, setAlpha, setDefaultIntrinsicHeight, setDefaultIntrinsicWidth, setIntrinsicHeight, setIntrinsicWidth, validate, wasInvalidated
@Implementation protected void setColor(int color)
@Implementation protected void setStroke(int width, int color)
public int getLastSetColor()
setColor(int color)
.
Note that this only works if the color is explicitly set with setColor(int color)
.
If the color of this drawable is set by another method, the result will be 0
.
public int getStrokeWidth()
public int getStrokeColor()