diff options
author | Deepanshu Gupta <deepanshu@google.com> | 2013-09-05 13:25:20 -0700 |
---|---|---|
committer | Adam Lesinski <adamlesinski@google.com> | 2014-01-27 10:31:04 -0800 |
commit | 8930cb4f37ff0fbde65f7afd4bbe06ab77677f78 (patch) | |
tree | e5b4d584f4b71c984aed4217afaf7779bfaf8b87 /tools/layoutlib/bridge/resources | |
parent | 7cce7bb5d8d68e78a414c176dc89a803f706c9ce (diff) | |
download | frameworks_base-8930cb4f37ff0fbde65f7afd4bbe06ab77677f78.zip frameworks_base-8930cb4f37ff0fbde65f7afd4bbe06ab77677f78.tar.gz frameworks_base-8930cb4f37ff0fbde65f7afd4bbe06ab77677f78.tar.bz2 |
Fix layout rendering for RTL locales
This changeset adds the framework resources for RTL locales and mirrors
the layout if the application is RTL aware.
Use ICU to check the character orientation of the locale - right to left
or left to right. Set the layout direction on the top level layout
accordingly. Also, load the RTL resources for Nav Bar when the locale is
RTL.
Change-Id: Icbb57ee2ac7c6d8dfc34c2f04dce34d820b9b1ed
Diffstat (limited to 'tools/layoutlib/bridge/resources')
-rw-r--r-- | tools/layoutlib/bridge/resources/bars/ldrtl-hdpi/ic_sysbar_back.png | bin | 0 -> 904 bytes |
-rw-r--r-- | tools/layoutlib/bridge/resources/bars/ldrtl-hdpi/ic_sysbar_recent.png | bin | 0 -> 533 bytes |
-rw-r--r-- | tools/layoutlib/bridge/resources/bars/ldrtl-mdpi/ic_sysbar_back.png | bin | 0 -> 617 bytes |
-rw-r--r-- | tools/layoutlib/bridge/resources/bars/ldrtl-mdpi/ic_sysbar_recent.png | bin | 0 -> 423 bytes |
-rw-r--r-- | tools/layoutlib/bridge/resources/bars/ldrtl-xhdpi/ic_sysbar_back.png | bin | 0 -> 1250 bytes |
-rw-r--r-- | tools/layoutlib/bridge/resources/bars/ldrtl-xhdpi/ic_sysbar_recent.png | bin | 0 -> 552 bytes |
6 files changed, 0 insertions, 0 deletions
diff --git a/tools/layoutlib/bridge/resources/bars/ldrtl-hdpi/ic_sysbar_back.png b/tools/layoutlib/bridge/resources/bars/ldrtl-hdpi/ic_sysbar_back.png Binary files differnew file mode 100644 index 0000000..782ebfe --- /dev/null +++ b/tools/layoutlib/bridge/resources/bars/ldrtl-hdpi/ic_sysbar_back.png diff --git a/tools/layoutlib/bridge/resources/bars/ldrtl-hdpi/ic_sysbar_recent.png b/tools/layoutlib/bridge/resources/bars/ldrtl-hdpi/ic_sysbar_recent.png Binary files differnew file mode 100644 index 0000000..677b471 --- /dev/null +++ b/tools/layoutlib/bridge/resources/bars/ldrtl-hdpi/ic_sysbar_recent.png diff --git a/tools/layoutlib/bridge/resources/bars/ldrtl-mdpi/ic_sysbar_back.png b/tools/layoutlib/bridge/resources/bars/ldrtl-mdpi/ic_sysbar_back.png Binary files differnew file mode 100644 index 0000000..a1b8062 --- /dev/null +++ b/tools/layoutlib/bridge/resources/bars/ldrtl-mdpi/ic_sysbar_back.png diff --git a/tools/layoutlib/bridge/resources/bars/ldrtl-mdpi/ic_sysbar_recent.png b/tools/layoutlib/bridge/resources/bars/ldrtl-mdpi/ic_sysbar_recent.png Binary files differnew file mode 100644 index 0000000..fcdbefe --- /dev/null +++ b/tools/layoutlib/bridge/resources/bars/ldrtl-mdpi/ic_sysbar_recent.png diff --git a/tools/layoutlib/bridge/resources/bars/ldrtl-xhdpi/ic_sysbar_back.png b/tools/layoutlib/bridge/resources/bars/ldrtl-xhdpi/ic_sysbar_back.png Binary files differnew file mode 100644 index 0000000..633d864 --- /dev/null +++ b/tools/layoutlib/bridge/resources/bars/ldrtl-xhdpi/ic_sysbar_back.png diff --git a/tools/layoutlib/bridge/resources/bars/ldrtl-xhdpi/ic_sysbar_recent.png b/tools/layoutlib/bridge/resources/bars/ldrtl-xhdpi/ic_sysbar_recent.png Binary files differnew file mode 100644 index 0000000..4665e2a --- /dev/null +++ b/tools/layoutlib/bridge/resources/bars/ldrtl-xhdpi/ic_sysbar_recent.png |