Updated CollectionView sample
This commit is contained in:
Родитель
9a1492bfb3
Коммит
92d6c53016
|
@ -49,8 +49,13 @@ The CollectionView is a flexible and performant view for presenting lists of dat
|
|||
In addition to allowing different layouts, the CollectionView has better performance than the ListView, but... how much does it improve the performance?.
|
||||
|
||||
![CollectionView](images/collectionviewperf.png)
|
||||
|
||||
![CollectionView Create Renderer](images/collectionviewperf-createrenderer.png)
|
||||
|
||||
One of the biggest changes between ListView and CollectionView is the removal of wrapping content in a ViewCell. This allows for significant gains to performance, especially on Android, while remaining familiar to what you’ve done before when using the ListView.
|
||||
|
||||
While the impact on the startup time is not noticeable (is more reduced), can appreciate a noticeable difference in memory consumption.
|
||||
|
||||
### Fast Renderers
|
||||
|
||||
Traditionally, most of the original control renderers on Android are composed of two views:
|
||||
|
|
Двоичные данные
images/collectionviewperf.png
Двоичные данные
images/collectionviewperf.png
Двоичный файл не отображается.
До Ширина: | Высота: | Размер: 7.1 KiB После Ширина: | Высота: | Размер: 7.1 KiB |
Двоичные данные
src/CollectionView/CollectionView Performance.xlsx
Двоичные данные
src/CollectionView/CollectionView Performance.xlsx
Двоичный файл не отображается.
|
@ -42,6 +42,8 @@
|
|||
<WarningLevel>4</WarningLevel>
|
||||
<AndroidManagedSymbols>true</AndroidManagedSymbols>
|
||||
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
|
||||
<AotAssemblies>true</AotAssemblies>
|
||||
<EnableLLVM>true</EnableLLVM>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Mono.Android" />
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
Margin="6"/>
|
||||
<CollectionView
|
||||
Grid.Row="1"
|
||||
ItemsSource="{Binding Monkeys}">
|
||||
ItemsSource="{Binding Monkeys}"
|
||||
ItemSizingStrategy="MeasureFirstItem"
|
||||
SelectionMode="None">
|
||||
<CollectionView.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid
|
||||
|
|
Загрузка…
Ссылка в новой задаче