How to convert png file to xml resource used by Android?

I want to convert my png file to an xml resource that can be adopted using android. I converted it using the website below.

https://convertio.co/fr/png-svg/

Then I downloaded it, then put it in the resource directory and changed the type to xml, but android did not accept it, of course.

+4
source share
1 answer

You can import the svg resource and convert it to a vector.

Click on the new vector resource and you will have two options: psd and svg. Import the svg file and it will be saved as an XML file.

+3
source

Source: https://habr.com/ru/post/1677247/


All Articles