com.bumptech.glide.request.transition.BitmapTransitionFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glide Show documentation
Show all versions of glide Show documentation
A fast and efficient image loading library for Android focused on smooth scrolling.
package com.bumptech.glide.request.transition;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import androidx.annotation.NonNull;
/**
* A {@link TransitionFactory} for {@link android.graphics.Bitmap}s that uses a Drawable transition
* factory to transition from an existing drawable already visible on the target to the new bitmap.
*
* @see BitmapContainerTransitionFactory
*/
public class BitmapTransitionFactory extends BitmapContainerTransitionFactory {
public BitmapTransitionFactory(@NonNull TransitionFactory realFactory) {
super(realFactory);
}
@Override
@NonNull
protected Bitmap getBitmap(@NonNull Bitmap current) {
return current;
}
}