RemoteDrawable

fun RemoteDrawable(context: Context, uri: Uri, placeholder: Drawable? = null, targetView: ImageView? = null)

Parameters

context

The context used for downloading the drawable from the URI.

uri

The URI to download the drawable from.

placeholder

The drawable to show before the drawable from the URI has been downloaded.

targetView

The target view for the drawable. When a target view is given, the remote drawable will be downloaded as large as the dimension of the target view. When this is null, the remote drawable will be downloaded as its original size.