unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
8.9k stars 720 forks source link

[Android] Visual difference for `MaterialRadioButtonStyle` with latest Uno version #13465

Open agneszitte opened 1 year ago

agneszitte commented 1 year ago

Current behavior

Visual difference for MaterialRadioButtonStyle with the latest Uno version (Tested with Uno 5.0.0-dev.2319 version) for Android

[Android] image

[iOS] ? Current exception preventing to test iOS

System.InvalidCastException: 'Unable to cast object of type 'Foundation.NSObject' (Objective-C type: 'Uno_UI_Controls_UnoNavigationBar') to type 'Uno.UI.Controls.UnoNavigationBar'.
Additional information:
    Selector: setFrame:
    Method: Uno.UI.Controls.UnoNavigationBar:set_Frame (CoreGraphics.CGRect)
'

Expected behavior

MaterialRadioButtonStyle should look like Windows on all platforms [Windows] image

[Skia.GTK] image

[WASM] image

How to reproduce it (as minimally and precisely as possible)

Test branch : dev/agzi/TestCheckBoxAndRadioButton

Workaround

N/A

Works on UWP/WinUI

Yes

Environment

Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia

NuGet package version(s)

Uno.UI Uno 5.0.0-dev.2319

Affected platforms

Android, ?iOS

IDE

Visual Studio 2022

IDE version

Version 17.6.4

Additional info

The simulator used for the test for Android image

Youssef1313 commented 1 year ago

I can't reproduce

sakshi173 commented 1 year ago

@agneszitte, I am not properly understood what exactly the issue is, as per my understanding issue is (for Radiobutton the inner circle is not in center position) please correct me if I am wrong. and when I see for Gallery 4X canary build it is displaying like the below screenshot. please let me know your suggestion on this. Thanks!! radiobutton android

sakshi173 commented 1 year ago

@agneszitte , circle in the middle properly centered for 4x & 5x for Android, Below is the screenshot. radiobutton android correct

Youssef1313 commented 1 year ago

Note: This is reproducible and happens for specific emulators that has 150% scaling. Not sure if it's fixable though. This is quite the same as https://github.com/unoplatform/uno/issues/4510.

agneszitte commented 1 year ago

Note: This is reproducible and happens for specific emulators that has 150% scaling. Not sure if it's fixable though. This is quite the same as #4510.

Re-Open - until we decide if it is fixable or not