You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Radiobutton doesn't appear correctly when FlowDirection is RightToLeft #6708
When FlowDirection is RightToLeft in Page, the RadioButton Content doesn't appear correctly.
For RightToLeft languages, the Content must be at the Right side , but currently the content goes to Left end(see below)
Steps to Reproduce
1-Create a New MAUI Project
2-Android Manifest :android:supportsRtl="true"
3-Add new Page
4-Code:
Well, this one's a stumper. So, the behavior in the example is expected, because the text itself is LTR. However, if the text is changed to RTL (if "Cat" is replaced with "חתול"), then the alignment should be correct, something like this:
That's how it works on native Android. And it seems like it should be working that way based on the properties that MAUI is setting for the RadioButton. But for some reason, the settings aren't taking.
So somewhere in the stack we must be overwriting the desired native settings for TextAlignment or TextDirection (or something else that I'm missing).
Activity
kristinx0211 commentedon May 5, 2022
can be reproduced on android 11.
hartez commentedon Feb 2, 2023
Well, this one's a stumper. So, the behavior in the example is expected, because the text itself is LTR. However, if the text is changed to RTL (if "Cat" is replaced with "חתול"), then the alignment should be correct, something like this:

That's how it works on native Android. And it seems like it should be working that way based on the properties that MAUI is setting for the RadioButton. But for some reason, the settings aren't taking.
So somewhere in the stack we must be overwriting the desired native settings for TextAlignment or TextDirection (or something else that I'm missing).