Hello @Mielesplayz ,
I tested on Android, iOS and Windows, it doesn't work on Android . When data is not available, you can display a string but not views.
<CollectionView ItemsSource="{Binding EmptyMonkeys}"
EmptyView="No items to display" />
There is a known issue reported at GitHub- Collection View Header and Empty View not showing on Android #8934, you could follow the progress.
If you want to display an empty view, you have to create a custom control using handlers in MAUI. The native Android control for CollectionView
is RecyclerView
, you could try to add an empty view to the RecyclerView
.
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.