CustomViewTarget
A base Target for loading resources (android.graphics.Bitmap, Drawable etc) into Views that provides default implementations for most methods and can determine the size of views using a android.view.ViewTreeObserver.OnDrawListener.
Parameters
<T>
The specific subclass of view wrapped by this target (e.g. )
<Z>
The resource type this target will receive (e.g. android.graphics.Bitmap).
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
Returns any stored request using getTag.
Link copied to clipboard
Determines the size of the view by first checking getWidth and getHeight.
Link copied to clipboard
A mandatory lifecycle callback that is called when a load is cancelled and its resources are freed.
Link copied to clipboard
A mandatory lifecycle callback that is called when a load fails.
Link copied to clipboard
A lifecycle callback that is called when a load is started.
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
Stores the request using setTag.
Link copied to clipboard
Override the android resource id 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.