ViewTarget
A base Target for loading android.graphics.Bitmaps into Views that provides default implementations for most most methods and can determine the size of views using a android.view.ViewTreeObserver.OnDrawListener.
To detect View reuse in android.widget.ListView or any that reuses views, this class uses the setTag method to store some metadata so that if a view is reused, any previous loads or resources from previous loads can be cancelled or reused.
Any calls to setTag} on a View given to this class will result in excessive allocations and and/or IllegalArgumentExceptions. If you must call setTag on a view, use setTagId to specify a custom tag for Glide to use.
Subclasses must call super in onLoadCleared
Deprecated
Use CustomViewTarget. Using this class is unsafe without implementing onLoadCleared and results in recycled bitmaps being referenced from the UI and hard to root-cause crashes.
Parameters
The specific subclass of view wrapped by this target.
The resource type this target will receive.