BoomMenu
BoomMenu copied to clipboard
Load icons with Glide/Picasso?
Is it possible to load remote icons with Glide (or Picasso)?
I will answer myself in case it's useful for anybody else. You keep a copy of the builder and use SimpleTarget:
Glide.with(context)
.load(url)
.asBitmap()
.fitCenter()
.into(new SimpleTarget<Bitmap>() {
@Override
public void onResourceReady(Bitmap resource, GlideAnimation<? super Bitmap> glideAnimation) {
builder.normalImageDrawable(new BitmapDrawable(context.getResources(), resource));
}
});'
load image using this code
not work on my app