@Implements(value=android.graphics.drawable.Drawable.class) public class ShadowDrawable extends java.lang.Object
Constructor and Description |
---|
ShadowDrawable() |
Modifier and Type | Method and Description |
---|---|
static void |
addCorruptStreamSource(java.lang.String src) |
static void |
clearCorruptStreamSources() |
protected static android.graphics.drawable.Drawable |
createFromPath(java.lang.String pathName) |
static android.graphics.drawable.Drawable |
createFromResourceId(int resourceId) |
protected static android.graphics.drawable.Drawable |
createFromResourceStream(android.content.res.Resources res,
android.util.TypedValue value,
java.io.InputStream is,
java.lang.String srcName,
android.graphics.BitmapFactory.Options opts) |
protected static android.graphics.drawable.Drawable |
createFromStream(java.io.InputStream is,
java.lang.String srcName) |
protected int |
getAlpha() |
int |
getCreatedFromResId() |
java.io.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 android.graphics.drawable.Drawable createFromStream(java.io.InputStream is, java.lang.String srcName)
@Implementation protected static android.graphics.drawable.Drawable createFromResourceStream(android.content.res.Resources res, android.util.TypedValue value, java.io.InputStream is, java.lang.String srcName, android.graphics.BitmapFactory.Options opts)
@Implementation protected static android.graphics.drawable.Drawable createFromPath(java.lang.String pathName)
public static android.graphics.drawable.Drawable createFromResourceId(int resourceId)
@Implementation protected int getIntrinsicWidth()
@Implementation protected int getIntrinsicHeight()
public static void addCorruptStreamSource(java.lang.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 java.io.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()