Reputation: 1624
I need to add localization features to my app for RTL languages (hebrew and arabic) How can I modify the layout in order for the picture to be aligned differently in the RTL option?
For example: in the main menu I got buttons on the left side and pic on the right (in the LTR version) I need to reverse it and not only change the pictures
Upvotes: 2
Views: 3335
Reputation: 412
you can use
android:layoutDirection="locale"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
Upvotes: 0
Reputation: 4535
find the localization label for RTL languages then save their custom layout xml files under the folder "res/layout-RtlLabel/customLayout.xml". For example "layout-fr"... look here for more info
Upvotes: 1