Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open up animate API #1007

Closed
TWiStErRob opened this issue Feb 26, 2016 · 3 comments
Closed

Open up animate API #1007

TWiStErRob opened this issue Feb 26, 2016 · 3 comments
Assignees
Milestone

Comments

@TWiStErRob
Copy link
Collaborator

See comment addressed to @sjudd: #840 (comment)

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

@TWiStErRob
Copy link
Collaborator Author

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;
    }
})

@rrahul
Copy link

rrahul commented Apr 14, 2016

When will we get to use the 3.8.0 stable version?

@TWiStErRob
Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants