Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Why won't my images display on Android?

$
0
0

I have a forms app that is working and looks great on iOS. The images for iOS are stored in a central assets folder and a file link is added to the iOS 'Resources' folder. So, trying to get the Android version tweaked and working I linked the files into the Android 'Resources/drawable' folder and set them to AndroidResource build action.

I use a global style to set the background image for a 'BasePageStyle' in App.xaml in my core project. Since that had no effect in android I manually set the background image on a single content page to the background image for testing. When I build the android app I see in the output a line like:

"Could not load image named: {0}: bg/MainBg.png"

Not sure what is causing this.

Two questions:
1) Should the global style images show or do they not work on Android?
2) Why do I get that line about the image not loading?

Thanks,
Jason


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>