I want to sent the my profile image in bottom navigation view with glide like this:
Glide.with(this)
.asBitmap()
.load(user.getProfileImageUrl())
.apply(RequestOptions.circleCropTransform())
.into(new CustomTarget<Bitmap>() {
@SuppressLint("NewApi")
@Override
public void onResourceReady(@NonNull Bitmap resource,
@Nullable Transition<? super Bitmap> transition) {
Drawable drawable = new BitmapDrawable(getResources(), resource);
navigationView.getMenu().findItem(R.id.item_profile).setIcon(drawable);
}
@Override
public void onLoadCleared(@Nullable Drawable placeholder) {
}
});
Like this but the image is not set.