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
The method that will be called when the resource load has finished.
|
void |
onStart()
Callback for when
android.app.Fragment#onStart()} or
android.app.Activity#onStart() is called.
|
void |
onStop()
Callback for when
android.app.Fragment#onStop()} or
android.app.Activity#onStop()} is called.
|
protected void |
setResource(GlideDrawable
Sets the drawable on the view using
android.widget.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(GlideDrawableresource, GlideAnimation <? super GlideDrawable > animation)
GlideAnimation is given or if the animation does not set the
android.graphics.drawable.Drawable on the view, the drawable is set using
android.widget.ImageView#setImageDrawable(android.graphics.drawable.Drawable).
onResourceReady in interface
Target<GlideDrawable>
onResourceReady in class
ImageViewTarget<GlideDrawable>
resource - the loaded resource.
animation -
protected void setResource(GlideDrawableresource)
android.widget.ImageView#setImageDrawable(android.graphics.drawable.Drawable).
setResource in class
ImageViewTarget<GlideDrawable>
resource - The
android.graphics.drawable.Drawable to display in the view.
public void onStart()
BaseTarget
android.app.Fragment#onStart()} or
android.app.Activity#onStart() is called.
public void onStop()
BaseTarget
android.app.Fragment#onStop()} or
android.app.Activity#onStop()} is called.