Unfortunately, they are not doing it right (or, "The End" ;-)).
In many constraints, such as parent element constraints, Android Studio creates constraints using "Left" / "Right", where it should use "Start" / "End" accordingly. This causes a problem in RTL languages โโ(each language in which its alphabet is Middle Eastern).
Worse: I have not even seen any open error about this.
My solution: close Android Studio (so it does not jump and does not try to correct the situation during editing), then using Atom and RegExp (or the sed
command) I carefully replace " layout_constraintLeft_toLeftOf
", with " layout_constraintStart_toStartOf
" and " layout_constraintRight_toRightOf
" with " layout_constraintEnd_toEndOf
"
Sorry, did not find anything stupid: - (
Note With a chain, this is even worse. The RTL layout does not even cling, nor does it support the layout.
My conclusion in this case was to go back to the old layouts until Google gives mature support for the RTL languages โโ... after all, RTL was here long before LTR; -)
Update: The solution is next to
I opened a bug for Google. They say that it will be "fixed in 2.4".
Update:
Marked as fixed
Fixed in 2.4
April 25, 2017
source share