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.构造器和说明 |
---|
BitmapTransitionFactory(TransitionFactory<Drawable> realFactory) |
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
在类中 BitmapContainerTransitionFactory<Bitmap>
current
- composite object containing a Bitmap and some other informationcurrent