public class XmlDrawableDecoder extends VectorDecoder
Decoder.SOURCE
resourceId, sourceType
Constructor and Description |
---|
XmlDrawableDecoder(android.content.res.Resources resources,
int resourceId) |
XmlDrawableDecoder(android.content.res.Resources resources,
android.net.Uri uri) |
Modifier and Type | Method and Description |
---|---|
protected android.graphics.Bitmap |
decodeAsBitmap(int boundsWidth,
int boundsHeight,
android.graphics.RectF slice,
DrawableState state) |
protected ImageSize |
decodeSize() |
void |
freeUpDrawableCache(android.graphics.drawable.Drawable drawable) |
android.graphics.drawable.Drawable |
getDrawable() |
boolean |
isStateful() |
void |
recycle() |
calculateImageSlice, getBitmap, getBitmap, isVector
createCache, fallbackCrop, finalize, getInputStream, getInputStream, getPath, getResources, getSize, getUri, resourceToUri
public XmlDrawableDecoder(@NonNull android.content.res.Resources resources, int resourceId)
public XmlDrawableDecoder(@NonNull android.content.res.Resources resources, @NonNull android.net.Uri uri)
@Nullable protected android.graphics.Bitmap decodeAsBitmap(int boundsWidth, int boundsHeight, @Nullable android.graphics.RectF slice, @Nullable DrawableState state)
decodeAsBitmap
in class VectorDecoder
protected ImageSize decodeSize()
decodeSize
in class Decoder
public void freeUpDrawableCache(android.graphics.drawable.Drawable drawable)
@Nullable @WorkerThread public android.graphics.drawable.Drawable getDrawable()
getDrawable
in class Decoder
public boolean isStateful()
isStateful
in class Decoder