public class LayeredImageView
extends ImageView
Modifier and Type | Class and Description |
---|---|
class |
LayeredImageView.Layer |
Constructor and Description |
---|
LayeredImageView(Context context) |
LayeredImageView(Context context,
AttributeSet set) |
Modifier and Type | Method and Description |
---|---|
LayeredImageView.Layer |
addLayer(Drawable d) |
LayeredImageView.Layer |
addLayer(Drawable d,
Matrix m) |
LayeredImageView.Layer |
addLayer(int idx,
Drawable d) |
LayeredImageView.Layer |
addLayer(int idx,
Drawable d,
Matrix m) |
int |
getLayersSize() |
Resources |
getResources() |
void |
invalidateDrawable(Drawable dr) |
protected void |
onDraw(Canvas canvas) |
void |
removeAllLayers() |
void |
removeLayer(LayeredImageView.Layer layer) |
void |
setImageBitmap(Bitmap bm) |
void |
setImageURI(Uri uri) |
protected boolean |
verifyDrawable(Drawable dr) |
public LayeredImageView(Context context)
public LayeredImageView(Context context, AttributeSet set)
protected boolean verifyDrawable(Drawable dr)
public void invalidateDrawable(Drawable dr)
public Resources getResources()
public void setImageBitmap(Bitmap bm) throws java.lang.RuntimeException
java.lang.RuntimeException
public void setImageURI(Uri uri) throws java.lang.RuntimeException
java.lang.RuntimeException
protected void onDraw(Canvas canvas)
public LayeredImageView.Layer addLayer(Drawable d, Matrix m)
public LayeredImageView.Layer addLayer(Drawable d)
public LayeredImageView.Layer addLayer(int idx, Drawable d, Matrix m)
public LayeredImageView.Layer addLayer(int idx, Drawable d)
public void removeLayer(LayeredImageView.Layer layer)
public void removeAllLayers()
public int getLayersSize()