Skip to content

[Android] Picker dialog button layout direction #14367

Open

Description

PR #13672 took care of most of the RTL issues for the Android Picker dialog; however, we still have cases where the button placement on the dialog will be incorrect based on the FlowDirection settings the user has provided.

The Material styles/layouts for the Dialog control on Android utilize the "locale" setting for their LayoutDirection. If an application is running in an LTR locale and the application specifies an RTL FlowDirection for the Picker, most of the dialog's controls/text will honor the RTL FlowDirection, but the buttons (e.g. "Cancel") will default to the LTR locale.

To handle this, we will need some way of controlling the LayoutDirection setting for the button layout in a dialog. This probably means a custom XML layout which creates a settable attribute for the button layout. Alternatively, we might be able to simply create a custom layout with the LayoutDirection set to "inherit".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions