Can Picasso Android load XML URL link images?

23 Views Asked by At

I have a question in mind while I'm developing an Android app. So basically I have a AutoCompleteTextView and I'm currently loading a list of country codes alongside it's respective image URL.

Here's how my Image URL looks like --> "http://localhost:30776/icons/svg/afghanistan_adobe_express.xml". [Note that I replace "localhost" with my computer's IP address since I'm hosting the REST API on my local Kubernetes]

Here's the code I've typed to load the image into my ImageView using Picasso: Picasso.get().load(countryCode.countryIcon). placeholder(R.drawable.niger_adobe_express).into(countryCodeFlagImageView)

So now, "countryCode.countryIcon" will have the link as mentioned above with the "XML" extension but will Picasso load it, it seems it doesn't load at my end even though I've accessed the link via the mobile browser.

Please help if anyone has any solution to this issue. Thanks!

0

There are 0 best solutions below