HI Everyone, is there any reference how to suppo...
# compose
n
HI Everyone, is there any reference how to support Arabic and English in compose
a
override fun onCreate(savedInstanceState: Bundle?) { window.decorView.layoutDirection = View.LAYOUT_DIRECTION_RTL super.onCreate(savedInstanceState) setContent { AppMain() }}
👎🏼 1
this for arabic app only
l
It's the same as in regular Android apps, just support RTL (right to left), and translate string resources.
👍 2
You should not have to hack the layoutDirection as suggested in the snippet above.
a
@louiscad do you have another way
l
Search "support RTL android" on Google, and look for official doc.