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

Slow load images in ListView

$
0
0

Hi,

I use the library FFImageLoading in a ListView and when I scroll, the images take time to appear, how can I make them appear immediately?

I did some prubras, if I take a fixed image of drawable it works perfect, so I can get to assume that it can be the Binding that loads the image.``
XML:

<StackLayout>
    <ListView x:Name="TodayListView"
            ItemsSource="{Binding Items}"
            HasUnevenRows="True"
            ItemTapped="Handle_ItemTapped"
            IsPullToRefreshEnabled="True">  
        <ListView.ItemTemplate>
            <DataTemplate>
                <ViewCell>
                    <StackLayout  x:Name="layout" IsVisible="{ Binding isVisible }">
                        <forms:CachedImage Source="{Binding photo}" HeightRequest="350" Aspect="AspectFill" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
                        </forms:CachedImage>
                        <Label Text="{Binding text}" TextColor="#4D606F" HorizontalOptions="Fill" FontSize="Medium" Font="Bold,20" Margin="10,10,0,0" />
                    </StackLayout>
                </ViewCell>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>
</StackLayout>

Viewing all articles
Browse latest Browse all 77050

Trending Articles



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