public class BitmapTransitionFactory extends BitmapContainerTransitionFactory<Bitmap>
TransitionFactory
for Bitmap
s that uses a Drawable transition
factory to transition from an existing drawable already visible on the target to the new bitmap.BitmapContainerTransitionFactory
Constructor and Description |
---|
BitmapTransitionFactory(TransitionFactory<Drawable> realFactory) |
Modifier and Type | Method and Description |
---|---|
protected Bitmap |
getBitmap(Bitmap current)
Retrieve the Bitmap from a composite object.
|
build
public BitmapTransitionFactory(@NonNull TransitionFactory<Drawable> realFactory)
@NonNull protected Bitmap getBitmap(@NonNull Bitmap current)
BitmapContainerTransitionFactory
Warning: Do not convert any arbitrary object to Bitmap via expensive drawing here, this method is called on the UI thread.
getBitmap
in class BitmapContainerTransitionFactory<Bitmap>
current
- composite object containing a Bitmap and some other informationcurrent