How to change application icon in Xamarin.Forms?

前端 未结 8 2102
日久生厌
日久生厌 2020-12-14 06:28

I replaced all the images everywhere (by this I mean in drawable folders and all Windows Assets folders and iOS Resources folder), but it still shows me the default Xamarin

8条回答
  •  情歌与酒
    2020-12-14 07:01

    I had the same problem, but the following helped resolve it:

    1. Go to MainActivity.cs (in the Solution Explorer)
    2. Look for where it says 'Icon ='
    3. Change the location of the Icon, but don't include the extension, i.e. jpg, png, etc. (For ex. Icon = "@drawable/weatherIcon")
    4. Save the file
    5. Restart debugging (the little restart icon beside the stop and pause icon around the top right-hand side of your screen)

    If you get stuck on any part of this check out this short video from 02:47 onwards https://youtu.be/5g8lWPQZFxs?t=167. It helped me a lot.

提交回复
热议问题