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

Listview with images, same image appears twice on iOS

$
0
0

I have a ListView with where the items contains one Image and one Label,

The Image in the DataTemplate is used like this,

Image categoryImage = new Image {
    Aspect = Aspect.AspectFill
    };
categoryImage.SetBinding(Image.SourceProperty, "Image");

The Image-property above is an URL to an image on my web server.
Both the Image and the Label is inside an RelativeLayout.

The ItemSource only contains seven items. Everything works great except for one thing. When I scroll down fast the Image from item 1 and item 2 is displayed on the item 6 and 7. After 1-2 seconds the correct image is displayed. The Label is always the right one that's showing.

Anyone seen this before and / or know how to fix this?

I'm running Xamarin.Forms 1.4.1.6349


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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