GitHub user breautek added a comment to the discussion: Cordova-android how to 
correctly declare an adaptive icon

If `ldpi` is the only one that doesn't work, it should be safe to omit that 
resource honestly. I do not think there is any device supported (that runs API 
24) that is a low density resolution device.

I believe `anydpi` is used for vectors, since they can scale to any DPI.

If you have a source SVG vector, this is what I did.

1. Open/Create new android studio project (Can only access the Vector Asset 
Tool from within a project)
2. Via `Resource Manager`, Click on the `+` button
3. Select `Image Asset`, which will open a `Asset Studio` dialog where you can 
experiment with different settings and preview your icons.

![Screenshot from 2023-09-29 
09-54-07](https://github.com/apache/cordova/assets/11200662/8256ca5f-e107-4f28-b59a-a60a3079f0d9)

4. Configure the settings to your preferences.
5. You'll likely need to rescale your SVG, even if your SVG follows the 
[recommended DP 
sizes](https://developer.android.com/develop/ui/views/launch/icon_design_adaptive#design-adaptive-icons).
 If your SVG uses the recommended, then a scale of ~62% seems to work good 
(judging based on 3 different apps that I've done this with).

The monochrome icon should follow the same thing as your foreground, except it 
should be binary colour (e.g. only white `#FFFFFF` and black (`#000000`). The 
colour that gets filled in depends on user settings and whether they are in 
dark mode or not. 

GitHub link: 
https://github.com/apache/cordova/discussions/435#discussioncomment-7144327

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.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