You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ListView items still reserve space even if collapsed on Android #1099
difficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
If ItemContainerStyle has a MinHeight of 0 and the ItemTemplate contains a Grid for which the Visibility is set to Collapsed then the space for that row is still reserved on Android. Works in UWP/WASM
Expected behavior
Space for rows should not be reserved.
How to reproduce it (as minimally and precisely as possible)
The difference from UWP is because Uno is not using the same default ListViewItem style. Uno is using the ListViewItemExpanded style which contains invisible elements (to support scenarios like multi-selection and data virtualization) that still take up space when the content is collapsed.
As a workaround, you can use the following Style, with the invisible items removed from the template:
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.
difficulty/medium 🤔Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUIkind/bugSomething isn't workingplatform/android 🤖Categorizes an issue or PR as relevant to the Android platformproject/items 🧾Categorizes an issue or PR as relevant to items (ItemsControl, ItemsRepeater, ...)
Activity
davidjohnoliver commentedon Jun 26, 2019
The difference from UWP is because Uno is not using the same default
ListViewItemstyle. Uno is using the ListViewItemExpanded style which contains invisible elements (to support scenarios like multi-selection and data virtualization) that still take up space when the content is collapsed.As a workaround, you can use the following
Style, with the invisible items removed from the template:In order to support the correct default style, we should implement the properties of
ListViewItemPresenter.pkar70 commentedon Feb 2, 2020
Still no change? :(
MartinZikmund commentedon Jul 15, 2025
Only relevant to native renderer, closing.
github-actions commentedon May 5, 2026
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.