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

Adroid Image Not Displaying

$
0
0

I've read through http://developer.xamarin.com/guides/xamarin-forms/working-with/images/ many times.

I've set up my folder structure correctly (see attachment). i.e. Resources\drawable

The images are set to 'Copy always' and 'AndroidResource'. The Resources.Designer.cs file has been updated.

On the first page, I do this:

        `Image acc = new Image();
        acc.Source = "accountsnew.png";

        Image img = new Image();
        img.Source = "icon.png";

        var layout = new StackLayout
        {
            Padding = new Thickness(10, 40, 10, 10),
            HorizontalOptions = LayoutOptions.FillAndExpand,
            Children = {
                acc,
                img
            }
        };`

Only the icon image shows up. the accountsnew image does not show up.

Any thoughts?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



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