blongho / worldCountryData

Android library for country flag, currency, and other country information
https://blongho.github.io/worldCountryData/doc/
MIT License
98 stars 35 forks source link

Amazing work!!! Could you give some tips to create flag xml? #46

Closed Juderer closed 2 months ago

Juderer commented 10 months ago

Amazing work! I really appreciate it!

I used Vector Asset in Android Studio to generate xml files showing different countries' flags via SVGs.

But there is a problem. I try to use EU FLAG SVG to obtain EU FLAG XML and I will lost some five-pointed stars in vector drawable preview. The same goes for the US FLAG SVG. What they have in common is that they have lots of five-pointed stars.

So, could you share some tips about creating XML files via SVG files applying to Android applications? THANKS A LOT!!!

blongho commented 9 months ago

@Juderer, @eagskunst did those changes. I think he can give you a better directive. He did change the images to .xml in the pull request 8

eagskunst commented 9 months ago

Hey @Juderer , it may be a problem with the svg resources I used. You can add SVG as XML files with the Android asset tool:

  1. Right click on the res folder of your module

  2. New -> Vector Asset

    image
  3. Local file, select the file path and press finish

    image
Juderer commented 8 months ago

@blongho @eagskunst Thank you guys so much for the helpful responses!