Hello, i am new to Xamarin and i am trying to do a sort of table: a list of a lot of data(so a fluid scrolling is important) divided in columns of the same width in percent(so they adapt to every screen) in a portable way(i i don't know how to write specific platform code), i don't need vertical seperators. Right now i did a ListView binded to my data, my ViewCell has got a Grid, so i am able to use Percent width (with *).
Here is the code in XAML:
<ListView.ItemTemplate>
<Grid HorizontalOptions="FillAndExpand" >
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="3*" />
<ColumnDefinition Width="4*" />
<ColumnDefinition Width="2*" />
</Grid.ColumnDefinitions>
<Label Text="{Binding ip}"
Grid.Row="1" Grid.Column="0" />
<Label Text="{Binding descrizione}"
Grid.Row="1" Grid.Column="1" />
<Label Text="{Binding utente}"
Grid.Row="1" Grid.Column="2" />
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
In the linked .cs file i just bind the ListView.ItemSource to a ObservableCollection and i am using HasUnevenRows.
This way i got what i need but the performance is Very poor. I am doing it right or is a problem of slow Labels?
Thank you in advance