get

open override fun get(context: Context): RemoteDrawable

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.

NOTE: this method returns a RemoteDrawable, which the drawable will be downloaded as its original size. When the uri represents a vector drawable, its original/intrinsic size could be smaller than the view to be attached. This results in a blurry or pixelated appearance in the UI. In this case, 'get(targetView)' can be used. The targetView is used as an indicator to specify the dimensions of the target view for the RemoteDrawable.


fun get(targetView: ImageView): RemoteDrawable

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.