Interface Transition.ViewAdapter
- All Known Implementing Classes:
BitmapImageViewTarget,BitmapThumbnailImageViewTarget,DrawableImageViewTarget,DrawableThumbnailImageViewTarget,ImageViewTarget,ThumbnailImageViewTarget
- Enclosing interface:
- Transition<R>
public static interface Transition.ViewAdapter
An interface wrapping a view that exposes the necessary methods to run the various types of
android animations as transitions: (
ViewTransition, ViewPropertyTransition and
animated Drawables).-
Method Summary
Modifier and TypeMethodDescriptionReturns the current drawable being displayed in the view, or null if no such drawable exists (or one cannot be retrieved).getView()Returns the wrappedView.voidsetDrawable(Drawable drawable) Sets the current drawable (usually an animated drawable) to display in the wrapped view.
-
Method Details
-
getView
View getView()Returns the wrappedView. -
getCurrentDrawable
Returns the current drawable being displayed in the view, or null if no such drawable exists (or one cannot be retrieved). -
setDrawable
Sets the current drawable (usually an animated drawable) to display in the wrapped view.- Parameters:
drawable- The drawable to display in the wrapped view.
-