public class GlideDrawableImageViewTarget extends ImageViewTarget<GlideDrawable>
view
SIZE_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, setDrawable
getRequest, getSize, getView, setRequest, setTagId, toString
onDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getView
public 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 GlideDrawable
s
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()
BaseTarget
Fragment.onStart()
} or Activity.onStart()
is called.onStart
in interface LifecycleListener
onStart
in class BaseTarget<GlideDrawable>
public void onStop()
BaseTarget
Fragment.onStop()
} or Activity.onStop()
} is called.onStop
in interface LifecycleListener
onStop
in class BaseTarget<GlideDrawable>