Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android - Text - RTL - TextAlignment #1406

Open
AndrewEQ opened this issue Mar 25, 2021 · 2 comments
Open

Android - Text - RTL - TextAlignment #1406

AndrewEQ opened this issue Mar 25, 2021 · 2 comments

Comments

@AndrewEQ
Copy link
Contributor

with RTL text content (such as Arabic & Hebrew) when it has multiple lines and text-wrapping on, does not align right on Android (tested on 9 & 10).

@AndrewEQ
Copy link
Contributor Author

Through my testing, I noticed that with RTL content, if you set the Alignment="Left", visually on the device, it aligns to the right and visa versa for Android but not for iOS.

@AndrewEQ
Copy link
Contributor Author

So I had a look at how Apple is doing RTL in general, it seems that if text is aligned Left, then for RTL its aligned Right automatically and visa versa:

Screenshot 2021-03-26 at 14 57 29

In my testing mentioned above, Android is currently doing the above but iOS isn't, so currently:

LTR

  • iOS: if I set TextAlignment="Left", the text is displayed on the left
  • iOS: if I set TextAlignment="Right", the text is displayed on the right
  • Android: if I set TextAlignment="Left", the text is displayed on the left
  • Android: if I set TextAlignment="Right", the text is displayed on the right

RTL

  • iOS: if I set TextAlignment="Left", the text is displayed on the left
  • iOS: if I set TextAlignment="Right", the text is displayed on the right
  • Android: if I set TextAlignment="Left", the text is displayed on the right
  • Android: if I set TextAlignment="Right", the text is displayed on the left

I believe RTL TextAlignment for iOS needs to match how fuse currently does RTL for Android.

What do you guys think? (@ichan-mb @mortend)

Ref: https://developer.apple.com/videos/play/wwdc2020/10219

@AndrewEQ AndrewEQ changed the title Android - Text - RTL - multi-line text-wrapped alignment Android - Text - RTL - TextAlignment Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant