Skip to content

Right-to-left (RTL) layout support #3

Description

@tech-master33

Summary

Fix swipe navigation order when the active app uses a right-to-left layout (Arabic, Hebrew, Farsi).

Why it matters

Swipe navigation currently follows left-to-right reading order. In an RTL app the user moves through elements in the wrong direction — a confusing and broken experience for RTL language users.

Proposed approach

  1. Detect the active window's layout direction from AccessibilityWindowInfo
  2. When the window is RTL, reverse the swipe → focus direction mapping
  3. Announce the layout direction on window switch so the user knows which way to swipe

Where to start

AccessibilityWindowInfo and the root AccessibilityNodeInfo — check for LAYOUT_DIRECTION_RTL on the root view, then reverse the swipe handler mapping.

Testing

Requires a device with an RTL system language or an app explicitly using RTL layout.

Related

See ROADMAP.md — Language support section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityRelates to accessibility for blind or disabled usersneeds helpNo one is assigned — contributor wantedscreen-readerScreen reader (andrdscren) or screen reader compatibilitytranslationTranslating docs or in-app strings to another language

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions