Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

ImageCell not displaying image only on Android #7786

Closed
luczha opened this issue Oct 3, 2019 · 1 comment
Closed

ImageCell not displaying image only on Android #7786

luczha opened this issue Oct 3, 2019 · 1 comment
Labels
s/unverified New report that has yet to be verified t/bug 🐛

Comments

@luczha
Copy link

luczha commented Oct 3, 2019

Description

Image and ImageCell could not load remote URL imageSource only on Android . On iOS it works fine . And I have set HttpClientImplementation to Managed and SSL/TLS to 1.2+ .

Steps to Reproduce

in xaml

<ListView x:Name="listView">
   <ListView.ItemTemplate>
          <DataTemplate>
              <ImageCell Text="{Binding Name}" Detail="{Binding Status}" ImageSource="{Binding ImageUrl}" />
          </DataTemplate>
    </ListView.ItemTemplate>
</ListView>

in code behind

public class Contact
{
    public string Name { get; set; }
    public string Status { get; set; }
    public string ImageUrl { get; set; }
}
public partial class GreetPage : ContentPage
{
    public GreetPage()
    {
        On<iOS>().SetUseSafeArea(true);

        InitializeComponent();

        listView.ItemsSource = new List<Contact>
        {
            new Contact { Name="John", ImageUrl = "http://lorempixel.com/100/100/people/1" },
            new Contact { Name="Jack", ImageUrl = "http://lorempixel.com/100/100/people/2", Status="Hello guys" },
            new Contact { Name="Jill", ImageUrl = "http://lorempixel.com/100/100/people/3" }
        };
    }       
}

Expected Behavior

Actual Behavior

Basic Information

  • Version with issue:

Xamarin.Forms 4.1 and 4.2

Reproduction Link

https://stackoverflow.com/questions/58213955/imagecell-not-displaying-image-only-on-android

@luczha luczha added s/unverified New report that has yet to be verified t/bug 🐛 labels Oct 3, 2019
@PureWeen
Copy link
Contributor

PureWeen commented Oct 3, 2019

@luczha I'm going to assume the response in there answers your question

https://stackoverflow.com/a/58215163

This
#7751

Might also be your issue? but I'm guessing the response in the SO post covers your case

@PureWeen PureWeen closed this as completed Oct 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants