breautek commented on issue #1669:
URL: 
https://github.com/apache/cordova-android/issues/1669#issuecomment-1727772267

   Providing the icon resources you have tried might help us determine if the 
icon itself is being authored incorrectly.
   
   I've recently used Android Studio to convert a SVG into a Android vector and 
I did notice that creating a "Vector" asset doesn't work as expected. In fact 
using the DP values as suggested by Google itself doesn't actually work as 
expected because the scale seems to be wrong. Importing an Image asset however 
allows you get the vector XML file with a preview, and that seems to do what 
you'd expect.
   
   The 
[docs](https://cordova.apache.org/docs/en/12.x/core/features/splashscreen/index.html#androidwindowsplashscreenanimatedicon)
 does state that you can use a PNG however, in which case you'll probably want 
to scale your PNG up to xxxhpdi density, which is 4x the base "dp" unit.
   
   Cordova enables icon with background so the following applies:
   
   > App icon with an icon background: this must be 240×240 dp and fit within a 
circle 160 dp in diameter.
   
   That means if you author a PNG, you should multiply the dp units by 4, so 
your canvas size should be 960x960px and your icon content should not leave 
640x640px diameter circle that is centered.
   
   I've attached an inkscape template that shows what I mean, the circular area 
is the "visible" area of the icon. Outside of the circle is masked away. 
[androidSplashIconTemplate.svg](https://github.com/apache/cordova-android/assets/11200662/25d961b9-8e7f-4a62-80cc-4f0237ac343d)
   
   And yes, I do agree that the docs could probably be a bit more clear on some 
of these details, but hopefully this will help you get going at the very least.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to