Share via

appicon resize issue

Ángel Rubén Valdeolmos Carmona 611 Reputation points
2022-12-20T13:30:41.897+00:00

I don't know why the icon doesn't show well in android:

<MauiIcon Include="Resources\AppIcon\appicon.svg" BaseSize="128,128" Color="White" />	  

Icon:
272478-appicon.png

Result:
272479-result.jpg

In Xamarin Forms the same icon in png displays fine.

Developer technologies | .NET | .NET Multi-platform App UI
0 comments No comments

Answer accepted by question author

  1. Anonymous
    2022-12-21T08:44:24.867+00:00

    Hello,

    You can use ForegroundScale to adjust icon like following code.

       <MauiIcon Include="Resources\AppIcon\appicon.svg" BaseSize="128,128"  ForegroundScale="0.55"  Color="White" />  
    

    Here is a document about Adaptive launcher

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    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.

    Was this answer helpful?

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.