BoomMenu icon indicating copy to clipboard operation
BoomMenu copied to clipboard

Load icons with Glide/Picasso?

Open amanzan opened this issue 6 years ago • 2 comments

Is it possible to load remote icons with Glide (or Picasso)?

amanzan avatar Sep 26 '17 08:09 amanzan

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));
                    }
                });'

amanzan avatar Sep 27 '17 10:09 amanzan

load image using this code

not work on my app

testleadinfosoft avatar Nov 14 '17 06:11 testleadinfosoft