I've a problem with the status of the AppCompatCheckBox and the colors it shows in the box and the api 23 after I update the target platforms to android 9.0 API 28.
If I initialize my checkbox in true, it shows the check correctly checkbox initial
But, if I uncheck the box it shows the blank box with the edges of my primary color check It should be gray border, white background.
And when you check, this appears bad unchecked It should be boder and background blue.
I build the checkboxes programatically
var checkBox = new AppCompatCheckBox(Context));
checkBox.checked = MyObj.Value;
AddView(checkBox);
And in my style I define the colors
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDarker</item>
<item name="colorAccent">@color/colorPrimaryDarker</item>
</style>
And I'm using the package nuget Xamarin.Android.Support.v7.AppCompat version 28.0.0.1 and MvvmCross 6.3.0
This only happens with devices with API 23 and in mode release, in debug works fine.
Thanks for your help.
Well, after several hours, I had to change my proguard.cfg file to this:
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**
-keep class android.support.** { *; }
-keep class android.support.v7.widget.AppCompatCheckBox { *; }
Directly placing my appcompatcheckbox class. It was the only solution I found.