diff --git a/docs/html/guide/topics/manifest/activity-element.jd b/docs/html/guide/topics/manifest/activity-element.jd index 844be11468b96..2aedaec3822de 100644 --- a/docs/html/guide/topics/manifest/activity-element.jd +++ b/docs/html/guide/topics/manifest/activity-element.jd @@ -218,7 +218,8 @@ separated by '{@code |}' — for example, "{@code locale|navigation|orientat
Added in API level 13.
diff --git a/docs/html/guide/topics/manifest/application-element.jd b/docs/html/guide/topics/manifest/application-element.jd index 2105a5048318e..42cfdd56ae104 100644 --- a/docs/html/guide/topics/manifest/application-element.jd +++ b/docs/html/guide/topics/manifest/application-element.jd @@ -23,6 +23,7 @@ parent.link=manifest-intro.html android:persistent=["true" | "false"] android:process="string" android:restoreAnyVersion=["true" | "false"] + android:supportsRtl=["true" | "false"] android:taskAffinity="string" android:theme="resource or theme" android:uiOptions=["none" | "splitActionBarWhenNarrow"] > @@ -271,7 +272,7 @@ applications, reducing resource usage.
The default value of this attribute is {@code false}.
If set to {@code true} and {@code targetSdkVersion} is set to 17 or higher, various RTL APIs will be +activated and used by the system so your app can display RTL layouts. +If set to {@code false} or if {@code targetSdkVersion} is set to 16 or lower, the RTL APIs will be ignored +or will have no effect and your app will behave the same regardless of the layout +direction associated to the user's Locale choice (your layouts will always be left-to-right). + +
The default value of this attribute is {@code false}.
+ +This attribute was added in API level 17.
+ldrtlldrtlldltrThe layout direction of your application. {@code ldrtl} means "layout-direction-right-to-left". {@code ldltr} means "layout-direction-left-to-right" and is the default implicit value.
-This can apply to any resource like layouts or values or drawables. +
This can apply to any resource such as layouts, drawables, or values.
For example, if you want to provide some specific layout for the Arabic language and some generic layout for any other "right-to-left" language (like Persian or Hebrew) then you would have: @@ -346,12 +345,21 @@ indicates the current locale.
res/
layout/
- main.xml (This is the default layout)
+ main.xml (Default layout)
layout-ar/
- main.xml (This is the specific layout for Arabic)
+ main.xml (Specific layout for Arabic)
layout-ldrtl/
- main.xml (This applies to any "right-to-left" language, except for Arabic, because the ar language qualifier has a higher precedence.)
+ main.xml (Any "right-to-left" language, except
+ for Arabic, because the "ar" language qualifier
+ has a higher precedence.)
+ Note: To enable right-to-left layout features + for your app, you must set {@code + supportsRtl} to {@code "true"} and set {@code targetSdkVersion} to 17 or higher.
+Added in API level 17.