RemoteDrawableResolver
data class RemoteDrawableResolver(uri: Uri, placeholder: DrawableResolver?) : DrawableResolver
Content copied to clipboard
A DrawableResolver that resolves a drawable from the given uri.
Parameters
uri
The URI to download the drawable from.
placeholder
The drawable to show before drawable at uri has been downloaded.
Constructors
Link copied to clipboard
fun RemoteDrawableResolver(uri: Uri, placeholder: DrawableResolver? = null)
Content copied to clipboard
Functions
Link copied to clipboard
Resolves a RemoteDrawable based on the given context. The drawable will be its original size. The resulting value may differ per context. E.g. due to differing device screen densities.
Resolves a RemoteDrawable based on the given targetView. The drawable will be the same size as the targetView. The resulting value may differ per View.getContext. E.g. due to differing device screen densities.