-
-
Save virendersran01/35dabcba47ff1d1adc389635fdab812a to your computer and use it in GitHub Desktop.
This file contains hidden or 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