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 Type
    Method
    Description
    Returns the current drawable being displayed in the view, or null if no such drawable exists (or one cannot be retrieved).
    Returns the wrapped View.
    void
    Sets the current drawable (usually an animated drawable) to display in the wrapped view.
  • Method Details

    • getView

      View getView()
      Returns the wrapped View.
    • getCurrentDrawable

      @Nullable 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(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.