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

any way to improve image performance in listview, without native renderers?

$
0
0

For xamarin forms to be super useful, I would expect the follwing code to be fast..

    <ListView.ItemTemplate>
            <DataTemplate>

                <ViewCell Height="300"> 
                    <AbsoluteLayout> 
                        <Image AbsoluteLayout.LayoutFlags="WidthProportional" AbsoluteLayout.LayoutBounds="0,0,1,240"
                            Source="{Binding ImageSource}" 
                            Aspect="AspectFill"/>

                        <Image AbsoluteLayout.LayoutFlags="None" AbsoluteLayout.LayoutBounds="5,245,40,40"
                            Source="{Binding UserThumbnailImageSource}" 
                            Aspect="AspectFill"/>


                        <Label AbsoluteLayout.LayoutFlags="WidthProportional" AbsoluteLayout.LayoutBounds="50,245,AutoSize,20"
                            Text="{Binding Username}" 
                            FontAttributes="Bold"
                            FontSize="Small" 
                            TextColor="Black" 
                            LineBreakMode="TailTruncation"/>
                        <Label AbsoluteLayout.LayoutFlags="WidthProportional" AbsoluteLayout.LayoutBounds="50,270,AutoSize,40"
                            Text="{Binding Description}" 
                            FontSize="Small" 
                            TextColor="Black" 
                            LineBreakMode="TailTruncation"/>

                    </AbsoluteLayout>
                </ViewCell> 
            </DataTemplate>
        </ListView.ItemTemplate>

as it is, it looks like I'll have to make custom renders natively as this jitters to hell on my iphone 6.

am I doing this wrong? is there a way to get better performance for this use case, without needing to drop down and optimize?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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