is not automatically align the text to the right when the text's language is RTL (Arabic for example), meanwhile the View base
TextView
does align the text to the right when the text's language is RTL, is it a bug or desired design?
s
Siyamed
04/20/2021, 9:21 AM
it is on purpose
Siyamed
04/20/2021, 9:23 AM
“meanwhile the View base
TextView
does align the text to the right when the text’s language is RTL”
this happens because of the default alignment value on platform.
however after talking with i18n experts a bunch we decided that the current state is the best but actually none of the defaults are best,
Siyamed
04/20/2021, 9:23 AM
if you’d like to change the behavior without changing LayoutDirection please set TextDirection property (i.e. to Content)
t
Tlaster
04/20/2021, 9:28 AM
Thanks! So the devs needs to manually handing the text alignment in compose if they want to keep the same behavior as the View base. Am I misunderstanding?