Seems like when using Android in LTR, Compose `Tex...
# compose
t
Seems like when using Android in LTR, Compose
Text
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
it is on purpose
“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,
if you’d like to change the behavior without changing LayoutDirection please set TextDirection property (i.e. to Content)
t
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?
s
Yes