-
-
Save hitherejoe/af248540ef6ff421c661 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Glide.with(getActivity()) | |
.load(uri) | |
.asBitmap() | |
.centerCrop() | |
.error(mDefaultBackground) | |
.into(new SimpleTarget<Bitmap>(width, height) { | |
@Override | |
public void onResourceReady(Bitmap resource, | |
GlideAnimation<? super Bitmap> | |
glideAnimation) { | |
mBackgroundManager.setBitmap(resource); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment