Skip to content

[Bug]: Text artifacts in RTL layout #1874

@darek607

Description

@darek607

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • 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

nia-in-arabic-bug-report.mp4

Relevant logcat output

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions