Search code examples
androidsvgdownloadimageviewpicasso

Download and display svg image in Android


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.


Solution

  • use this library AndroidSvgLoader