Class DrawableImageViewTarget
- java.lang.Object
-
- com.bumptech.glide.request.target.BaseTarget<Z>
-
- com.bumptech.glide.request.target.ViewTarget<android.widget.ImageView,Z>
-
- com.bumptech.glide.request.target.ImageViewTarget<android.graphics.drawable.Drawable>
-
- com.bumptech.glide.request.target.DrawableImageViewTarget
-
- All Implemented Interfaces:
LifecycleListener,Target<android.graphics.drawable.Drawable>,Transition.ViewAdapter
public class DrawableImageViewTarget extends ImageViewTarget<android.graphics.drawable.Drawable>
A target for displayDrawableobjects inImageViews.
-
-
Field Summary
-
Fields inherited from class com.bumptech.glide.request.target.ViewTarget
view
-
Fields inherited from interface com.bumptech.glide.request.target.Target
SIZE_ORIGINAL
-
-
Constructor Summary
Constructors Constructor Description DrawableImageViewTarget(android.widget.ImageView view)DrawableImageViewTarget(android.widget.ImageView view, boolean waitForLayout)Deprecated.UseViewTarget.waitForLayout()instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetResource(android.graphics.drawable.Drawable resource)-
Methods inherited from class com.bumptech.glide.request.target.ImageViewTarget
getCurrentDrawable, onLoadCleared, onLoadFailed, onLoadStarted, onResourceReady, onStart, onStop, setDrawable
-
Methods inherited from class com.bumptech.glide.request.target.ViewTarget
clearOnDetach, getRequest, getSize, getView, removeCallback, setRequest, setTagId, toString, waitForLayout
-
Methods inherited from class com.bumptech.glide.request.target.BaseTarget
onDestroy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.bumptech.glide.request.transition.Transition.ViewAdapter
getView
-
-
-
-
Constructor Detail
-
DrawableImageViewTarget
public DrawableImageViewTarget(android.widget.ImageView view)
-
DrawableImageViewTarget
@Deprecated public DrawableImageViewTarget(android.widget.ImageView view, boolean waitForLayout)Deprecated.UseViewTarget.waitForLayout()instead.
-
-
Method Detail
-
setResource
protected void setResource(@Nullable android.graphics.drawable.Drawable resource)- Specified by:
setResourcein classImageViewTarget<android.graphics.drawable.Drawable>
-
-