enisn / Xamarin.Forms.InputKit

CheckBox, Radio Button, Labeled Slider, Dropdowns etc.
MIT License
589 stars 100 forks source link

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

Open pecoraio opened 1 year ago

pecoraio commented 1 year ago

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

Smartphone (please complete the following information):

enisn commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.