ThumbnailImageViewTarget
Avoids extra calls to requestLayout when loading more than once image into an android.widget.ImageView with fixed dimensions.
Typically it makes sense to use this class when loading multiple images with the thumbnail API into views in a scrolling list like ListView, GridView, or RecyclerView.
FixedSizeDrawable may cause skewing or other undesirable behavior depending on your images, views, and scaling. If this occurs, consider DrawableImageViewTarget or as alternatives.
Parameters
<T>
The type of resource that will be displayed in the ImageView.
Constructors
Link copied to clipboard
Link copied to clipboard
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Returns the current android.graphics.drawable.
Link copied to clipboard
Determines the size of the view by first checking getWidth and getHeight.
Link copied to clipboard
Sets the given android.graphics.drawable.
Link copied to clipboard
Sets the given android.graphics.drawable.
Link copied to clipboard
Sets the given android.graphics.drawable.
Link copied to clipboard
abstract fun onResourceReady(resource: R, transition: Transition<out Any>)
Content copied to clipboard
The method that will be called when the resource load has finished.
Link copied to clipboard
Removes the given callback from the pending set if it's still retained.
Link copied to clipboard
Sets the given android.graphics.drawable.
Link copied to clipboard
Sets the android resource id to use in conjunction with setTag to store temporary state allowing loads to be automatically cancelled and resources re-used in scrolling lists.
Link copied to clipboard
Indicates that Glide should always wait for any pending layout pass before checking for the size an View.