public class GlideDrawableImageViewTarget extends ImageViewTarget<GlideDrawable>
viewSIZE_ORIGINAL| Constructor and Description |
|---|
GlideDrawableImageViewTarget(ImageView view)
|
GlideDrawableImageViewTarget(ImageView view,
int maxLoopCount)
|
| Modifier and Type | Method and Description |
|---|---|
void |
onResourceReady(GlideDrawable resource,
GlideAnimation<? super GlideDrawable> animation)
The method that will be called when the resource load has finished.
|
void |
onStart()
Callback for when
Fragment.onStart()} or Activity.onStart() is called. |
void |
onStop()
Callback for when
Fragment.onStop()} or Activity.onStop()} is called. |
protected void |
setResource(GlideDrawable resource)
Sets the drawable on the view using
ImageView.setImageDrawable(android.graphics.drawable.Drawable). |
getCurrentDrawable, onLoadCleared, onLoadFailed, onLoadStarted, setDrawablegetRequest, getSize, getView, setRequest, setTagId, toStringonDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetViewpublic GlideDrawableImageViewTarget(ImageView view)
view - The view to display the drawable in.public GlideDrawableImageViewTarget(ImageView view, int maxLoopCount)
view - The view to display the drawable in.maxLoopCount - A value to pass to to GlideDrawables
indicating how many times they should repeat their animation (if they have one). See
GlideDrawable.setLoopCount(int).public void onResourceReady(GlideDrawable resource, GlideAnimation<? super GlideDrawable> animation)
GlideAnimation is given or if the animation does not set the
Drawable on the view, the drawable is set using
ImageView.setImageDrawable(android.graphics.drawable.Drawable).onResourceReady in interface Target<GlideDrawable>onResourceReady in class ImageViewTarget<GlideDrawable>resource - the loaded resource.animation - protected void setResource(GlideDrawable resource)
ImageView.setImageDrawable(android.graphics.drawable.Drawable).setResource in class ImageViewTarget<GlideDrawable>resource - The Drawable to display in the view.public void onStart()
BaseTargetFragment.onStart()} or Activity.onStart() is called.onStart in interface LifecycleListeneronStart in class BaseTarget<GlideDrawable>public void onStop()
BaseTargetFragment.onStop()} or Activity.onStop()} is called.onStop in interface LifecycleListeneronStop in class BaseTarget<GlideDrawable>