Xamarin Forms image not showing

后端 未结 5 1385
孤街浪徒
孤街浪徒 2020-12-18 22:11

I have a Xamarin Forms (2.0) Android app where I\'m trying to show an image. I\'ve got an icon called icon-pages-r1.png which I\'m trying to show using the foll

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 22:37

    When binding to the name of an image resource in android I found it must be:

    • in Resources/Drawable folder
    • set Build Action: AndroidResource
    • set Copy to Output: Do not copy
    • doesn't allow hyphens in name
    • name is case sensitive

提交回复
热议问题