@Implements(value=android.graphics.drawable.Drawable.class) public class ShadowDrawable extends Object
Constructor and Description |
---|
ShadowDrawable() |
Modifier and Type | Method and Description |
---|---|
static void |
addCorruptStreamSource(String src) |
static void |
clearCorruptStreamSources() |
protected static Drawable |
createFromPath(String pathName) |
static Drawable |
createFromResourceId(int resourceId) |
protected static Drawable |
createFromResourceStream(Resources res,
TypedValue value,
InputStream is,
String srcName,
BitmapFactory.Options opts) |
protected static Drawable |
createFromStream(InputStream is,
String srcName) |
protected int |
getAlpha() |
int |
getCreatedFromResId() |
InputStream |
getInputStream() |
protected int |
getIntrinsicHeight() |
protected int |
getIntrinsicWidth() |
protected void |
invalidateSelf() |
protected void |
setAlpha(int alpha) |
static void |
setDefaultIntrinsicHeight(int defaultIntrinsicHeight) |
static void |
setDefaultIntrinsicWidth(int defaultIntrinsicWidth) |
void |
setIntrinsicHeight(int intrinsicHeight) |
void |
setIntrinsicWidth(int intrinsicWidth) |
void |
validate() |
boolean |
wasInvalidated() |
@Implementation protected static Drawable createFromStream(InputStream is, String srcName)
@Implementation protected static Drawable createFromResourceStream(Resources res, TypedValue value, InputStream is, String srcName, BitmapFactory.Options opts)
@Implementation protected static Drawable createFromPath(String pathName)
public static Drawable createFromResourceId(int resourceId)
@Implementation protected int getIntrinsicWidth()
@Implementation protected int getIntrinsicHeight()
public static void addCorruptStreamSource(String src)
@Resetter public static void clearCorruptStreamSources()
public static void setDefaultIntrinsicWidth(int defaultIntrinsicWidth)
public static void setDefaultIntrinsicHeight(int defaultIntrinsicHeight)
public void setIntrinsicWidth(int intrinsicWidth)
public void setIntrinsicHeight(int intrinsicHeight)
public InputStream getInputStream()
@Implementation protected void setAlpha(int alpha)
@Implementation protected void invalidateSelf()
@Implementation(minSdk=19) protected int getAlpha()
public int getCreatedFromResId()
public boolean wasInvalidated()
public void validate()