nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

[Bug]: Text artifacts in RTL layout

Open darek607 opened this issue 6 months ago • 1 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

Is there a StackOverflow question about this issue?

  • [x] I have searched StackOverflow

What happened?

When the device locale is set to a right-to-left (RTL) language such as Arabic, text in the app displays incorrectly: periods, question marks, and exclamation marks appear at the beginning of the last line in a text block instead of at the end.

I'm also thinking about whether the English should be aligned to the right, or maybe to the left. In the View system, when a TextView is match_parent, Android aligns the English to the left (based on the first strong directional character), regardless of the fact that device language is RTL.

Are there RTL language users who could share their expectations regarding English text alignment in RTL contexts?

Android 14 emulator, Arabic locale

https://github.com/user-attachments/assets/83798e63-badc-48d0-9a3c-1a2f0331d72c

Relevant logcat output


Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

darek607 avatar May 15 '25 18:05 darek607

Hi, I'd like to pick this up.

mayokunyusuf avatar Sep 09 '25 12:09 mayokunyusuf