Description
openedon Apr 3, 2023
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".