today, when you solve a bug, you encounter such a problem:
Problem Description: When switching the system language to Arabic, the Actionbar layout does not change from right to left.
So I added the android:supportsrtl= "true" attribute to the application tag in the Androidmanifest.xml file, and found no effect.
The reason is that the minimum SDK version and the target version are required in Androidmanifest.xml:
<USES-SDK android:minsdkversion= "11"
android:targetsdkversion= "One"/>
The use of android:supportsrtl= "true" requires the minimum SDK version of 17, and then the above two sentences directly deleted or modified to >=17 version can be.
Attention:
Because the layout direction can be right-to-left, so when writing the XML layout, in order to prevent the layout confusion, do not use such as layout_marginright, but should be layout_marginend this.
Setting android:supportsrtl= "True" is not an issue