Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ImageSource not works with Android mipmap folders

$
0
0

Recently i migrated an Android project, I'm using version 4.3.0.908675 of Xamarin.Forms.

I added all the images in Android mipmap folders that were previously drawable, but now my image does not load, when debugging everything seems to be right but when displaying the screen no images appear.

My code to add image source

    stlLogo = new StackLayout
    {
        VerticalOptions = LayoutOptions.CenterAndExpand,
        HorizontalOptions = LayoutOptions.FillAndExpand,
        Padding = new Thickness(20, 0, 20, 40)
    };

    imgLogo = new Image
    {
        Source = ImageSource.FromFile("ig_splash_logo")
    };

Viewing all articles
Browse latest Browse all 204402

Trending Articles



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