Interface Transition.ViewAdapter
-
- All Known Implementing Classes:
BitmapImageViewTarget,BitmapThumbnailImageViewTarget,DrawableImageViewTarget,DrawableThumbnailImageViewTarget,ImageViewTarget,ThumbnailImageViewTarget
- Enclosing interface:
- Transition<R>
public static interface Transition.ViewAdapterAn interface wrapping a view that exposes the necessary methods to run the various types of android animations as transitions: (ViewTransition,ViewPropertyTransitionand animatedDrawables).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description android.graphics.drawable.DrawablegetCurrentDrawable()Returns the current drawable being displayed in the view, or null if no such drawable exists (or one cannot be retrieved).android.view.ViewgetView()Returns the wrappedView.voidsetDrawable(android.graphics.drawable.Drawable drawable)Sets the current drawable (usually an animated drawable) to display in the wrapped view.
-
-
-
Method Detail
-
getView
android.view.View getView()
Returns the wrappedView.
-
getCurrentDrawable
@Nullable android.graphics.drawable.Drawable getCurrentDrawable()
Returns the current drawable being displayed in the view, or null if no such drawable exists (or one cannot be retrieved).
-
setDrawable
void setDrawable(android.graphics.drawable.Drawable drawable)
Sets the current drawable (usually an animated drawable) to display in the wrapped view.- Parameters:
drawable- The drawable to display in the wrapped view.
-
-