question

gubbalamuralikrishna-8119 avatar image
0 Votes"
gubbalamuralikrishna-8119 asked YonglunLiu-MSFT answered

Can we change the app icons on android and ios from another project in xamarin forms

I want to change the app icons in android and ios from another project like shared library, If i change the icons in shared library it will change in both android and ios.

dotnet-xamarin
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

YonglunLiu-MSFT avatar image
0 Votes"
YonglunLiu-MSFT answered

Hello,

No, you couldn't change app icons in android and ios from another project like shared library.

On Android, Referring to Activity Icon, we could find the following content:

By default, your activity will be given the default launcher icon provided by the system. To use a custom icon, first add your .png to Resources/drawable, set its Build Action to AndroidResource, then use the Icon property to specify the icon to use. For example:

On iOS, Referring to Managing Icons with Asset Catalogs, wo could find this:

For icons, a special AppIcon image set can be added to the Assets.xcassets file in the app's project. All version of the image required to support all resolutions are included in the xcasset and grouped together. A special editor in Visual Studio for Mac allows the developer to include and setup these images graphically.


Best Regards,

Alec Liu.



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.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.