Setting android:supportsrtl= "True" is not an issue

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.