distriqt / ANE-CustomResources

Android Custom Resources for AIR Applications
https://airnativeextensions.com
15 stars 4 forks source link

Custom Build ANE #33

Closed wpeasycart closed 5 years ago

wpeasycart commented 5 years ago

Hello, I am wondering when you say to put the icon resources in the /res directory, should it look like folders?

/drawable-hdpi /drawable-mdpi /drawable-xhdpi /drawable-xxhdpi /drawable-xxxhdpi

OR

should we pull the image from those and put into the resource folder? do names matter of these resources, etc? kind of unclear here what it should look like in the /res directory.

I have compiled the ANE and it didn't work with the new android icons, so just wondering.

marchbold commented 5 years ago

If you use the Notification icon generator you will get a zip that contains all of those directories and you should extract them directly into the res directory.

res/
    drawable-hdpi/
                  icon-resource-name.png
    drawable-mdpi/
                  icon-resource-name.png

The file name is important, it will be the resource name that you use in your code. You should enter this in the icon generator.