Grial-UI-Kit-Support
Grial-UI-Kit-Support copied to clipboard
switch cell looks not good on android
I used grai uikit in one of Xamarin.Forms app. I noticed that the switch cell of "TableView" is looks different in Android. Please see below image:
the code is:
<TableView Intent="Settings">
<TableRoot>
TableSection Title="Notification">
<SwitchCell On="true" Text="Email" />
<SwitchCell On="true" Text="SMS" />
<SwitchCell On="true" Text="PUSH" />
</TableSection>
</TableRoot>
</TableView>
Also notices that in iOS, the "Tapped" event of "Text Cell" doesn't work. while the same is working fine on droid.
Hi @softsan,
I am not sure what you are asking about the look and feel of the switches but if you mean that they are different on Android and iOS that is the expected result.
How are you managing the tapped event on the TextCell and what iOS version are you testing with ?
Regards and thanks, JP
Hi @jpbrocca,
Thanks for your reply. I know that the switch cell will looks different on both platform. but what i am trying to say that it not looks like a standard android switch. I have a sample project where i didn't use grailui kit, so it looks good as per the standard android switch as shown in below image:
so if you compare this switch with the my previous captured image(where we integrate GrailUI Kit), it looks different.
Hope you get my point.
Hi @softsan, OK, now I understand. When I first look at your android capture I didn't noticed that the switches looked somehow clipped.
What happens if you use just a Switch? Do you get a similar result or those are renderer OK ? Last question: Which android version are you trying with ?
Regards and thanks, JP
I have same issue with the switch... I use .net maui and in grial ui-kit tabbedloginpage, for example, the remember-me switch is this:
It looks not good in my android :
Is possible to use grial-switch-component ?