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
view
SIZE_ORIGINAL
构造器和说明 |
---|
ImageViewTarget(ImageView view) |
ImageViewTarget(ImageView view,
boolean waitForLayout)
已过时。
Use
ViewTarget.waitForLayout() instead. |
clearOnDetach, getRequest, getSize, getView, removeCallback, setRequest, setTagId, toString, waitForLayout
onDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getView
public ImageViewTarget(ImageView view)
@Deprecated public ImageViewTarget(ImageView view, boolean waitForLayout)
ViewTarget.waitForLayout()
instead.@Nullable public Drawable getCurrentDrawable()
Drawable
being displayed in the view
using ImageView.getDrawable()
.getCurrentDrawable
在接口中 Transition.ViewAdapter
public void setDrawable(Drawable drawable)
Drawable
on the view using ImageView.setImageDrawable(android.graphics.drawable.Drawable)
.setDrawable
在接口中 Transition.ViewAdapter
drawable
- 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
在接口中 Target<Z>
onLoadStarted
在类中 ViewTarget<ImageView,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
在接口中 Target<Z>
onLoadFailed
在类中 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
在接口中 Target<Z>
onLoadCleared
在类中 ViewTarget<ImageView,Z>
placeholder
- The placeholder drawable to optionally show, or null.public void onResourceReady(@NonNull Z resource, @Nullable Transition<? super Z> transition)
Target
onResourceReady
在接口中 Target<Z>
resource
- the loaded resource.public void onStart()
LifecycleListener
Fragment.onStart()
} or Activity.onStart()
is called.onStart
在接口中 LifecycleListener
onStart
在类中 BaseTarget<Z>
public void onStop()
LifecycleListener
Fragment.onStop()
} or Activity.onStop()
} is called.onStop
在接口中 LifecycleListener
onStop
在类中 BaseTarget<Z>