Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CollectionView SelectedItem not highlighted on Android until scroll #5117

Closed
matt-goldman opened this issue Mar 8, 2022 · 2 comments
Closed
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView delighter p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@matt-goldman
Copy link
Contributor

Description

When selecting an item in a CollectionView, the item is not highlighted and there is no visual indication that an item has been selected. If the collection is long enough and you scroll the selected item off screen, when you scroll back it is in fact highlighted.

Issue occurs on Android but not Windows. macOS and iOS not yet tested (I will updated with a comment once I've tested on them).

A repository with a sample reproducing this error is available here: https://github.com/matt-goldman/CollectionViewIssue

Steps to Reproduce

  1. Create a new .NET MAUI app
  2. Add a CollectionView
  3. Bind the CollectionView ItemsSource property to an ObservableCollection
  4. Populate the ObservableCollection
  5. Run the app and select an item
  6. Observe that the item does not become highlighted
  7. Scroll through the collection to move the selected item off-screen
  8. Scroll in the other direction to bring the item back
  9. Note that the item is highlighted

Version with bug

Preview 13 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Tested with Android API 28

Did you find any workaround?

No response

Relevant log output

No response

@matt-goldman matt-goldman added the t/bug Something isn't working label Mar 8, 2022
@XamlTest XamlTest added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Mar 8, 2022
@XamlTest
Copy link
Collaborator

XamlTest commented Mar 8, 2022

Verified Repro with Visual Studio Enterprise 2022 main 17.2.0 Preview 2.0 [32219.17.main]. Repro Project: https://github.com/matt-goldman/CollectionViewIssue

@Redth Redth added legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor area-controls-collectionview CollectionView, CarouselView, IndicatorView and removed legacy-area-controls Label, Button, CheckBox, Slider, Stepper, Switch, Picker, Entry, Editor labels Mar 22, 2022
@Redth Redth added this to the 6.0.300 milestone Mar 22, 2022
@davidortinau davidortinau added the p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint label May 3, 2022
@VincentBu
Copy link

It works on Android emulator with vs main build(32507.29.main).
image

@ghost ghost locked as resolved and limited conversation to collaborators Jun 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView delighter p/1 Work that is important, and has been scheduled for release in this or an upcoming sprint platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants