

This means, that if your app has to support older Android versions as well - you will still have to provide raster icons for them. The vector format in Android OS was introduced in version 21, you can use vector images as application icons in the launcher only in versions 26 and higher.

But it has some drawbacks, let’s talk about them, maybe in your case a vector icon is not an option. Especially if the application is not large, and PNG icons, (if not made correctly) consume almost a quarter of the total app size. Getting rid of bitmaps in an entire application is a dream of many optimizers. The guide is also available in the Czech and Russian languages. However, it does have some limitations, and I will describe them here, also as a complete description of the whole process of its preparation, including a video of it. This means that you do not need to create a bitmap icon for each screen resolution at all, but use one/two vector files for all possible resolutions! Since raster icons are quite bulky you can save a lot of kilobytes in the size of the application.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.Digging through Android’s documentation, I’ve noticed that not only adaptive icons were added to the SDK for version 26, but also the ability to completely forget about raster app icons for the launcher on the newest versions of Android. If the response is helpful, please click " Accept Answer" and upvote it.

Then, open the mipmap-anydpi-v26 folder, edit the icon.xml and icon_round.xml.Ĭhange the value of foreground to your icon name, my new icon name is launcher_foreground Open these folders, copy the image to your Xamarin android folder like following screenshot(For example, I copy the image from mipmap-hdpi folder, then I put it in your mipmap-hdpi folder of xamarin.android project, mipmap-mdpi, mipmap-xhdpi, mipmap-xxhdpi, mipmap-xxxhdpi are executed same operation). First of all, please use this too(search Android Asset Studio Launcher icon generator) to upload your icon(need high quality), setting some details about your needs, then download the icon (click the top-right blue background arrow), you can get a zip, open the zip, you can find several folders.
