glide icon indicating copy to clipboard operation
glide copied to clipboard

Open up animate API

Open TWiStErRob opened this issue 10 years ago • 3 comments

See comment addressed to @sjudd: https://github.com/bumptech/glide/issues/840#issuecomment-167326465

GenericRequestBuilder.animate(GlideAnimationFactory) is package private, increase to public so it's easier to do custom animations.

TWiStErRob avatar Feb 26 '16 17:02 TWiStErRob

In 3.8.0-SNAPSHOT it's now possible to write the following:

Glide
    .with(this)
    .load(url)
    .asBitmap()
    .placeholder(R.drawable.placeholder)
    .crossFade() // new
    .into(imageView);

It's also much easier to write custom animation because of the published animate(factory) method, for example using palette with cross-fade:

.animate(new BitmapContainerCrossFadeFactory<PaletteBitmap>(FADE_DURATION) {
    @Override protected Bitmap getBitmap(PaletteBitmap resource) {
        return resource.bitmap;
    }
})

TWiStErRob avatar Mar 29 '16 12:03 TWiStErRob

When will we get to use the 3.8.0 stable version?

rrahul avatar Apr 14 '16 08:04 rrahul

As soon as it's released ;) No timeline, really. You can use the snapshot, it should be just as stable because there should be no big features introduced.

TWiStErRob avatar Apr 14 '16 09:04 TWiStErRob