com.bumptech.glide.request.target
Class BitmapImageViewTarget

java.lang.Object
  extended by com.bumptech.glide.request.target.BaseTarget<Z>
      extended by com.bumptech.glide.request.target.ViewTarget<ImageView,Z>
          extended by com.bumptech.glide.request.target.ImageViewTarget<Bitmap>
              extended by com.bumptech.glide.request.target.BitmapImageViewTarget
All Implemented Interfaces:
LifecycleListener, GlideAnimation.ViewAdapter, Target<Bitmap>

public class BitmapImageViewTarget
extends ImageViewTarget<Bitmap>

A Target that can display an Bitmap in an ImageView.

See Also:
GlideDrawableImageViewTarget

Field Summary
 
Fields inherited from class com.bumptech.glide.request.target.ViewTarget
view
 
Fields inherited from interface com.bumptech.glide.request.target.Target
SIZE_ORIGINAL
 
Constructor Summary
BitmapImageViewTarget(ImageView view)
           
 
Method Summary
protected  void setResource(Bitmap resource)
          Sets the Bitmap on the view using ImageView.setImageBitmap(android.graphics.Bitmap).
 
Methods inherited from class com.bumptech.glide.request.target.ImageViewTarget
getCurrentDrawable, onLoadCleared, onLoadFailed, onLoadStarted, onResourceReady, setDrawable
 
Methods inherited from class com.bumptech.glide.request.target.ViewTarget
getRequest, getSize, getView, setRequest, setTagId, toString
 
Methods inherited from class com.bumptech.glide.request.target.BaseTarget
onDestroy, onStart, onStop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.bumptech.glide.request.animation.GlideAnimation.ViewAdapter
getView
 

Constructor Detail

BitmapImageViewTarget

public BitmapImageViewTarget(ImageView view)
Method Detail

setResource

protected void setResource(Bitmap resource)
Sets the Bitmap on the view using ImageView.setImageBitmap(android.graphics.Bitmap).

Specified by:
setResource in class ImageViewTarget<Bitmap>
Parameters:
resource - The bitmap to display.