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

SelectionView selected color isn't changed on android release build. #342

Open
pecoraio opened this issue Mar 13, 2023 · 3 comments
Open
Labels
bug Something isn't working target-MAUI

Comments

@pecoraio
Copy link

Describe the bug
The selected color in the SelectionView does not change when the selected item changes.

Smartphone (please complete the following information):

  • Device: android (release build only)
  • OS: android7.0 - 13
  • Version 4.2.5
  • .Net7
@enisn enisn added target-MAUI bug Something isn't working labels Mar 13, 2023
@enisn
Copy link
Owner

enisn commented Mar 13, 2023

It seems a trimming issue, can you try setting global setting in the page that you used SelectionView right before InitializeComponent();

SelectionView.GlobalSetting.Color = Colors.Red;
InitializeComponent();

@pecoraio
Copy link
Author

I added the code you suggested. However, it didn't improve anything.The color did not change when I tapped the button of the SelectionView.

@pecoraio
Copy link
Author

Your sample app also caused the problem. Is it just my environment?
Anyway,It seems there was a control refreshing problem, but it was fixed when I added the 'InvalidateMeasure' method to the 'Element_Clicked' event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working target-MAUI
Projects
None yet
Development

No branches or pull requests

2 participants