|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bumptech.glide.request.target.BaseTarget<Z> com.bumptech.glide.request.target.ViewTarget<ImageView,Z> com.bumptech.glide.request.target.ImageViewTarget<GlideDrawable> com.bumptech.glide.request.target.GlideDrawableImageViewTarget
public class GlideDrawableImageViewTarget
A Target
that can display an Drawable
in
an ImageView
.
Field Summary |
---|
Fields inherited from class com.bumptech.glide.request.target.ViewTarget |
---|
view |
Constructor Summary | |
---|---|
GlideDrawableImageViewTarget(ImageView view)
Constructor for an Target that can display an
GlideDrawable in an ImageView . |
|
GlideDrawableImageViewTarget(ImageView view,
int maxLoopCount)
Constructor for an Target that can display an
GlideDrawable in an ImageView . |
Method Summary | |
---|---|
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) . |
Methods inherited from class com.bumptech.glide.request.target.ImageViewTarget |
---|
getCurrentDrawable, onLoadCleared, onLoadFailed, onLoadStarted, setDrawable |
Methods inherited from class com.bumptech.glide.request.target.ViewTarget |
---|
getRequest, getSize, getView, setRequest, toString |
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.animation.GlideAnimation.ViewAdapter |
---|
getView |
Constructor Detail |
---|
public GlideDrawableImageViewTarget(ImageView view)
Target
that can display an
GlideDrawable
in an ImageView
.
view
- The view to display the drawable in.public GlideDrawableImageViewTarget(ImageView view, int maxLoopCount)
Target
that can display an
GlideDrawable
in an ImageView
.
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)
.Method Detail |
---|
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>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |