|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bumptech.glide.request.target.BaseTarget<Z>
com.bumptech.glide.request.target.ViewTarget<ImageView,Z>
com.bumptech.glide.request.target.ImageViewTarget<Z>
Z - The type of resource that this target will display in the wrapped ImageView.public abstract class ImageViewTarget<Z>
A base Target for displaying resources in
ImageViews.
| 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 | |
|---|---|
ImageViewTarget(ImageView view)
|
|
| Method Summary | |
|---|---|
Drawable |
getCurrentDrawable()
Returns the current Drawable being displayed in the view using
ImageView.getDrawable(). |
void |
onLoadCleared(Drawable placeholder)
Sets the given Drawable on the view using
ImageView.setImageDrawable(android.graphics.drawable.Drawable). |
void |
onLoadFailed(Exception e,
Drawable errorDrawable)
Sets the given Drawable on the view using
ImageView.setImageDrawable(android.graphics.drawable.Drawable). |
void |
onLoadStarted(Drawable placeholder)
Sets the given Drawable on the view using
ImageView.setImageDrawable(android.graphics.drawable.Drawable). |
void |
onResourceReady(Z resource,
GlideAnimation<? super Z> glideAnimation)
The method that will be called when the resource load has finished. |
void |
setDrawable(Drawable drawable)
Sets the given Drawable on the view using
ImageView.setImageDrawable(android.graphics.drawable.Drawable). |
protected abstract void |
setResource(Z resource)
|
| Methods inherited from class com.bumptech.glide.request.target.ViewTarget |
|---|
getRequest, getSize, getView, setRequest, setTagId, toString |
| Methods inherited from class com.bumptech.glide.request.target.BaseTarget |
|---|
onDestroy, onStart, onStop |
| 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 ImageViewTarget(ImageView view)
| Method Detail |
|---|
public Drawable getCurrentDrawable()
Drawable being displayed in the view using
ImageView.getDrawable().
getCurrentDrawable in interface GlideAnimation.ViewAdapterpublic void setDrawable(Drawable drawable)
Drawable on the view using
ImageView.setImageDrawable(android.graphics.drawable.Drawable).
setDrawable in interface GlideAnimation.ViewAdapterdrawable - The drawable to display in the wrapped view.public void onLoadStarted(Drawable placeholder)
Drawable on the view using
ImageView.setImageDrawable(android.graphics.drawable.Drawable).
onLoadStarted in interface Target<Z>onLoadStarted in class BaseTarget<Z>placeholder - The placeholder drawable to optionally show, or null.
public void onLoadFailed(Exception e,
Drawable errorDrawable)
Drawable on the view using
ImageView.setImageDrawable(android.graphics.drawable.Drawable).
onLoadFailed in interface Target<Z>onLoadFailed in class BaseTarget<Z>errorDrawable - The error drawable to optionally show, or null.e - The exception causing the load to fail, or null if no exception occurred (usually because a decoder
simply returned null).public void onLoadCleared(Drawable placeholder)
Drawable on the view using
ImageView.setImageDrawable(android.graphics.drawable.Drawable).
onLoadCleared in interface Target<Z>onLoadCleared in class BaseTarget<Z>placeholder - The placeholder drawable to optionally show, or null.
public void onResourceReady(Z resource,
GlideAnimation<? super Z> glideAnimation)
Target
onResourceReady in interface Target<Z>resource - the loaded resource.protected abstract void setResource(Z resource)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||