I have developed an application where everything is laid out left-to-right in its layouts and views. The issue is when I change the language in settings to Persian, a right-to-left language, everything changes to right-to-left. How can I override this change to prevent it from happening?
Asked
Active
Viewed 176 times
3
-
Have you been using "start" and "end" tags in your Layouts instead of "left" and "right"? This will cause the behavior you described. – Matei Radu Jan 06 '17 at 13:02
-
Possible duplicate of [Override supportsRtl in one of the layouts](http://stackoverflow.com/questions/29466048/override-supportsrtl-in-one-of-the-layouts) – Visores Jan 06 '17 at 13:05
-
If you want to disable Right to Left layout support then set android:supportRtl="false" in application tag of your manifest and if you want to support Right to Left layout then follow the instructions of Matei Radu. – Usman Rana Jan 06 '17 at 13:05
3 Answers
2
as mentioned in this post: Override supportsRtl in one of the layouts
you have to set
android:layoutDirection="ltr"
1
you simply need to write this line inside the application Tag of your projects manifest
android:supportsRtl="false"

Umar Ata
- 4,170
- 3
- 23
- 35
1
You can specify android:toLeftOf
instead of android:toStartOf
, and so forth if you are using RelativeLayout. Then the view is forced to the left regardless of locale

Tash Pemhiwa
- 7,590
- 4
- 45
- 49