com.bumptech.glide.request.animation
Interface GlideAnimation.ViewAdapter

All Known Implementing Classes:
BitmapImageViewTarget, DrawableImageViewTarget, GlideDrawableImageViewTarget, ImageViewTarget
Enclosing interface:
GlideAnimation<R>

public static interface GlideAnimation.ViewAdapter

An interface wrapping a view that exposes the necessary methods to run the various types of android animations (ViewAnimation, ViewPropertyAnimation and animated Drawables).


Method Summary
 Drawable getCurrentDrawable()
          Returns the current drawable being displayed in the view, or null if no such drawable exists (or one cannot be retrieved).
 View getView()
          Returns the wrapped View.
 void setDrawable(Drawable drawable)
          Sets the current drawable (usually an animated drawable) to display in the wrapped view.
 

Method Detail

getView

View getView()
Returns the wrapped View.


getCurrentDrawable

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.