Skip to content

fix: mirror question mark icon in RTL layouts#1348

Open
Phoenix1808 wants to merge 1 commit into
Droid-ify:mainfrom
Phoenix1808:fix/arabic-question-mark
Open

fix: mirror question mark icon in RTL layouts#1348
Phoenix1808 wants to merge 1 commit into
Droid-ify:mainfrom
Phoenix1808:fix/arabic-question-mark

Conversation

@Phoenix1808

Copy link
Copy Markdown

Fix RTL rendering of reproducible-builds help icon

What

The help icon (?) displayed next to the Versions section header (which links to information about reproducible builds) was always rendered as the left-to-right Latin question mark, even when the application was running in a right-to-left (RTL) locale such as Arabic.

In Arabic, the correct question mark is ؟, which is visually mirrored compared to the Latin ?. Since the drawable was not configured for RTL mirroring, the icon appeared inconsistent with the rest of the localized interface.

Before

  • Help icon rendered as ? in Arabic (RTL) layouts.

After

  • Help icon is automatically mirrored and rendered as ؟ in RTL layouts.

  • No visual changes in LTR locales.

Change

Enabled automatic RTL mirroring for the question mark vector drawable by adding:

<vector
    ...
    android:autoMirrored="true"
    ... >

This allows Android to automatically mirror the drawable when the layout direction is RTL while preserving the existing appearance in LTR locales.

Testing

Tested by switching the device language to Arabic and verifying that:

  • The help icon next to the Versions section is mirrored correctly.

  • The icon remains unchanged in LTR locales.

  • No regressions were observed in the surrounding UI.

Screenshots

Before

image

After

image

Fixes #1229

The reproducible-builds help icon next to the Versions header always
rendered the LTR ? glyph. Adding android:autoMirrored=true lets it
flip horizontally in RTL locales so it reads as the Arabic ؟.

Fixes Droid-ify#1229
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

Successfully merging this pull request may close these issues.

[Feature Request] Change "?" mark for Versions in Arabic interface

1 participant