Wiv icon indicating copy to clipboard operation
Wiv copied to clipboard

Can we make it use with Glide ?

Open d3bt3ch opened this issue 7 years ago • 3 comments

Can we make it use with Glide ? Can we make it cache images for offline support ?

d3bt3ch avatar Jun 08 '17 19:06 d3bt3ch

You can check my forked repo, I modified it to support Glide (since the owner is currently using Picasso so there won't be a pull request for that).

Attention:

You might get an error because of the collapsed between setTag() of Wiv and Glide. To prevent that, in your main app Application file (BaseApplication.java?), add this line in onCreate function: + ViewTarget.setTagId(R.id.glide_tag); where glide_tags is

Let me know if you need more help.

hnguyenworkstation avatar Oct 03 '17 02:10 hnguyenworkstation

@hnguyenworkstation Thanks. Did'nt understood the setTag() part ?

d3bt3ch avatar Oct 05 '17 02:10 d3bt3ch

@debjitk Basically, Glide uses setTag() for each ImageView it loads image to, and also WiV so there will be a collusion because of that.

hnguyenworkstation avatar Oct 05 '17 19:10 hnguyenworkstation