Z - The type of resource that this target will display in the wrapped ImageView.public abstract class ImageViewTarget<Z> extends ViewTarget<ImageView,Z> implements Transition.ViewAdapter
viewSIZE_ORIGINAL| Constructor and Description |
|---|
ImageViewTarget(ImageView view) |
ImageViewTarget(ImageView view,
boolean waitForLayout) |
getRequest, getSize, getView, removeCallback, setRequest, setTagId, toStringonDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetViewpublic ImageViewTarget(ImageView view)
public ImageViewTarget(ImageView view, boolean waitForLayout)
@Nullable public Drawable getCurrentDrawable()
Drawable being displayed in the view
using ImageView.getDrawable().getCurrentDrawable in interface Transition.ViewAdapterpublic void setDrawable(Drawable drawable)
Drawable on the view using ImageView.setImageDrawable(android.graphics.drawable.Drawable).setDrawable in interface Transition.ViewAdapterdrawable - The drawable to display in the wrapped view.public void onLoadStarted(@Nullable 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(@Nullable 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.public void onLoadCleared(@Nullable Drawable placeholder)
Drawable on the view using ImageView.setImageDrawable(android.graphics.drawable.Drawable).onLoadCleared in interface Target<Z>onLoadCleared in class ViewTarget<ImageView,Z>placeholder - The placeholder drawable to optionally show, or null.public void onResourceReady(Z resource, @Nullable Transition<? super Z> transition)
TargetonResourceReady in interface Target<Z>resource - the loaded resource.public void onStart()
LifecycleListenerFragment.onStart()} or Activity.onStart() is called.onStart in interface LifecycleListeneronStart in class BaseTarget<Z>public void onStop()
LifecycleListenerFragment.onStop()} or Activity.onStop()} is called.onStop in interface LifecycleListeneronStop in class BaseTarget<Z>