I'm new to Xamarin.Forms and I am finding it impossible to change the application's icon for my app.
I used a cross-platform template in VS2017. I changed all the icon files in @mipmap-XXXX. When I run in the emulator the app icon changes but not on my device.
Does anyone have a proven method for getting this working. I'm sure it's possible but I can't find any information that helps.
If you're creating projects using the newest VS/Xamarin update, you should notice a folder in the Android project (under Resources) called mipmap-anydpi-v26, or similar. In this folder, you will find two XML files: icon.xml and icon_round.xml. If you open these files, you'll notice that they reference :
When you are assigning the app icon and you reference icon
, you are actually referencing the XML file, not the images. The XML file then retrieves the correct image size from the other mipmap folders.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With