2
votes

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

2

2 Answers

1
votes

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

0
votes

you can use

android:layoutDirection="locale"

android:layout_width="wrap_content"
android:layout_height="wrap_content"