Question about SVG launcher icons and scaling

I'm using an SVG for my launcher icon, specified like this in drawables.xml:

<drawables xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xsi:noNamespaceSchemaLocation="">developer.garmin.com/.../resources.xsd">
    <bitmap id="LauncherIcon" filename="my_icon.svg" dithering="none" />
</drawables>

However, when I build, I get the following warning:

WARNING: epix2pro47mm: The launcher icon (192x192) isn't compatible with the specified launcher icon size of the device 'epix2pro47mm' (60x60). The image will be scaled to the target size.

Is there a way to define an SVG launcher icon and have it automatically scaled correctly for each device, without needing to create a separate drawables.xml with device-specific sizes?

Thanks for any advice!

Top Replies

  • I mean, the icon is already being auto scaled for every device in the manifest, right? I think the actual objection here is that there's a warning about it. (To be fair, you are not alone…

All Replies