ResourceDrawableDecoder

open class ResourceDrawableDecoder : ResourceDecoder<T, Z>

Decodes Drawables given resource Uris.

This is typically used as a fallback for resource types that either aren't Bitmaps (see #350) or for resource types that we can't obtain an java.io.InputStream for using a standard ContentResolver, including some types of application icons and resources loaded from other packages.

Constructors

Link copied to clipboard
open fun ResourceDrawableDecoder(context: Context)

Functions

Link copied to clipboard
open fun decode(    source: Uri,     width: Int,     height: Int,     options: Options): Resource<Drawable>
Returns a decoded resource from the given data or null if no resource could be decoded.
Link copied to clipboard
open fun handles(source: Uri, options: Options): Boolean
Returns true if this decoder is capable of decoding the given source with the given options, and false otherwise.

Properties

Link copied to clipboard
val THEME: Option<Theme>
Specifies a Theme which will be used to load the drawable.