/MAUICollectionView

Maui's custom CollectionView, like FlatList in React Native

Primary LanguageC#MIT LicenseMIT

MAUICollectionView

NuGet version(Yang.MAUICollectionView)

This is a custom CollectionView based on ScrollView, similar to FlatList in ReactNative. It does not use native UICollectionView/RecyclerView and has high performance by recycling views

Demo:

  • Android

try it on your phone -> download apk

sharex-20230623150627.mp4
  • Windows
sharex-20230530213121.mp4

Features

  • Cross Platform, iOS/Android/Windows/Maccatalyst
  • Support custom layout
    • vertical list
    • horizontal list
    • vertical grid
    • horizontal grid
  • Support operation(Insert, Remove, Move, Update) animation
  • Support load more
  • Support scrollto item
  • Support drag-sort
  • Support select

Features of Demo

  • RefreshView
  • Context Menu

Principle of high performance

When scrolling, there are three situations where the item needs to be set, visible becomes invisible, always visible, invisible becomes visible. We recycle the invisible item, the visible item reuses the recycled item to measure, and the always visible item does not need to be re-measured, so that we only need to measure a few items when scrolling.

Changelog

  • 0.0.1 Show simple list should be ok.

Awesome Resources