Last active
July 11, 2020 11:30
-
-
Save muthuraj57/e0a4e3b9770458d8a12325773d86a353 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
placeholder.setText(getInitials()); | |
ViewUtil.setVisibility(avatar, View.GONE); | |
Glide.with(context) | |
.load(member.getAvatar()) | |
.asBitmap() | |
.into(new SimpleTarget<Bitmap>() { | |
@Override | |
public void onResourceReady(Bitmap resource, GlideAnimation<? super Bitmap> glideAnimation) { | |
avatar.setImageBitmap(resource); | |
ViewUtil.setVisibility(placeholder, View.GONE); | |
ViewUtil.setVisibility(avatar, View.VISIBLE); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment