How to display images from Android resource folder and iOS Asset Catalogs

DonRADonRA USMember
edited March 2018 in Xamarin.Forms

Hi guys, im facing a problem trying to get all my app icons ready for publishing. So i have to use images.xcassets to get icon in all resolutions(is there a better way to aproach this? im setting 18 diferent resolutions for every icon i use in the app and is getting really slow to load)
Till now i was loading images from my pcl project like this in xaml:
<Image Source="user"/>
But when implementing icons on images.xcassets i dont get any results in iOS, icon are not getting loaded
this is how im named the icons on images.xcassets, and i have the same name on android, resource/drawable folder

Answers

  • DarshanJSDarshanJS ✭✭✭✭ USMember ✭✭✭✭

    @DonRA :

    you can insert all your app icons images in Appicons tab in same images.xcassets tab for different resolutions

  • DonRADonRA USMember
    edited March 2018

    @DarshanJS
    Hi man tanks for the reply, yes thats what im doing so far now, but i mean how should i call the image from pcl project code(xaml or codebehind) to get the icon image render in both iOS and Android

Sign In or Register to comment.