Napa Ram

    Napa Ram

    1 year ago
    HI Everyone, is there any reference how to support Arabic and English in compose
    Abdalla Hassanin

    Abdalla Hassanin

    1 year ago
    override fun onCreate(savedInstanceState: Bundle?) { window.decorView.layoutDirection = View.LAYOUT_DIRECTION_RTL super.onCreate(savedInstanceState) setContent { AppMain() }}
    this for arabic app only
    louiscad

    louiscad

    1 year ago
    It's the same as in regular Android apps, just support RTL (right to left), and translate string resources.
    You should not have to hack the layoutDirection as suggested in the snippet above.
    Abdalla Hassanin

    Abdalla Hassanin

    1 year ago
    @louiscad do you have another way
    louiscad

    louiscad

    1 year ago
    Search "support RTL android" on Google, and look for official doc.