diff options
author | Fabrice Di Meglio <fdimeglio@google.com> | 2012-09-07 11:39:17 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-07 11:39:27 -0700 |
commit | d672d29dd03ffc148b629c1abbd00bd9dc88be80 (patch) | |
tree | 0dfffece6968d388ea3fc0eff3252ba9556a584c /docs | |
parent | bae1d478964f609f4ed37d629ed3247a12ed312e (diff) | |
parent | 1047509e49a7ec1a0fec03352d65567161a99585 (diff) | |
download | frameworks_base-d672d29dd03ffc148b629c1abbd00bd9dc88be80.zip frameworks_base-d672d29dd03ffc148b629c1abbd00bd9dc88be80.tar.gz frameworks_base-d672d29dd03ffc148b629c1abbd00bd9dc88be80.tar.bz2 |
Merge "Update documentation for layout direction qualifiers for Resouces" into jb-mr1-dev
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/guide/topics/resources/providing-resources.jd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/html/guide/topics/resources/providing-resources.jd b/docs/html/guide/topics/resources/providing-resources.jd index b0d5d6f..b2c95b9 100644 --- a/docs/html/guide/topics/resources/providing-resources.jd +++ b/docs/html/guide/topics/resources/providing-resources.jd @@ -329,6 +329,31 @@ your application for other languages.</p> indicates the current locale.</p> </td> </tr> + <tr id="LayoutDirectionQualifier"> + <td>Layout Direction</td> + <td>Examples:<br/> + <code>ldrtl</code><br/> + <code>ldltr</code><br/> + </td> + <td><p>The 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. + </p> + <p>This can apply to any resource like layouts or values or drawables. + </p> + <p>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: + </p> +<pre class="classic no-pretty-print"> +res/ + layout/ <span style="color:black"> + main.xml </span>(This is the default layout) + layout-ar/ <span style="color:black"> + main.xml </span>(This is the specific layout for Arabic) + layout-ldrtl/ <span style="color:black"> + main.xml </span>(This applies to any "right-to-left" language, except for Arabic, because the ar language qualifier has a higher precedence.) +</pre> + </td> + </tr> <tr id="SmallestScreenWidthQualifier"> <td>smallestWidth</td> <td><code>sw<N>dp</code><br/><br/> |