Class BitmapTransitionFactory

java.lang.Object
com.bumptech.glide.request.transition.BitmapContainerTransitionFactory<Bitmap>
com.bumptech.glide.request.transition.BitmapTransitionFactory
All Implemented Interfaces:
TransitionFactory<Bitmap>

public class BitmapTransitionFactory extends BitmapContainerTransitionFactory<Bitmap>
A TransitionFactory for Bitmaps that uses a Drawable transition factory to transition from an existing drawable already visible on the target to the new bitmap.
See Also:
  • Constructor Details

  • Method Details

    • getBitmap

      @NonNull protected Bitmap getBitmap(@NonNull Bitmap current)
      Description copied from class: BitmapContainerTransitionFactory
      Retrieve the Bitmap from a composite object.

      Warning: Do not convert any arbitrary object to Bitmap via expensive drawing here, this method is called on the UI thread.

      Specified by:
      getBitmap in class BitmapContainerTransitionFactory<Bitmap>
      Parameters:
      current - composite object containing a Bitmap and some other information
      Returns:
      the Bitmap contained within current