High-density Android icons?
Forgive me if this is a stupid question; I'm new to Titanium. How can I include .png Android app icons for both medium and high screen densities [48x48, 72x72] in my app?
3 Answers
-
Hi Ishaan
Firstly, there is no need to compile the source, as this functionality is in the 1.5.X Continuous Builds packages (which are directly from the 1.5 master branch of the repo).
Maybe it's worth double checking that you checked out 1.5 master branch and not something else, which would explain why it's not working.
I have to thank Don Thorp for his (always astounding) patience in explaining how Ti accommodates different densities. This info is from him:
"Anything under platforms/android is effectively copied as is into the build.
Items in the multi-density Titanium directories (low, medium, high) are then name-manged and copied into the appropriate mdpi, ldpi, hdpi folders with, still with the mangled names. At runtime, your app will most likely just be written to use "images/appicon.png", but the image at correct density should be applied"To be clear, the image that you want to set is the icon that users click to launch your app? You want to create different versions of it so that it looks good regardless of the density?
Thanks
-
Ishaan, I believe this is coming for version 1.5, due for release at the end of the year. See this ticket for information.
-
Hi,
are there any updates? Still doesn't work. At least for me (any density is activated in manifest).