1

I am trying to download and display an svg image in my ImageView. I am using Picasso to display my other images from the web. However, now I have to show the svg images and I cannot get to decode the image.

This is how I do he rest of the images :-

Picasso.with(context)
                .load(mProject.getAvatar())
                .placeholder(R.drawable.ic_description_blue_grey_600_36dp)
                .error(R.drawable.ic_description_blue_grey_600_36dp)
                .centerCrop()
                .into(holder.thumbnail);

How can I display SVG images from the web? Any help is appreciated.

user3034944
  • 1,541
  • 2
  • 17
  • 35
  • Possible duplicate of [How to show the SVG image in the android imageview](https://stackoverflow.com/questions/25055896/how-to-show-the-svg-image-in-the-android-imageview) – Viks Mar 12 '18 at 09:03
  • Possible duplicate, please check this [link](https://stackoverflow.com/questions/33696488/getting-bitmap-from-vector-drawable) – kishna.147 Mar 12 '18 at 09:06
  • @VikashParajuli I need to download the image from web and then display it to the imageview. The question shows how to display the image which I stored in resources – user3034944 Mar 12 '18 at 09:06

1 Answers1

0

use this library AndroidSvgLoader