From 4a066c5c77109431f50806fc29179d28f1472871 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Fri, 20 Apr 2012 14:49:13 -0400 Subject: Update SystemUI for sw600dp devices. Devices between 600 and 719dp will now use the two-bar (phone) SystemUI layout, or something like it, derived from PhoneStatusBar. Devices above 720dp will use the system bar from TabletStatusBar. However, this distinction is not to be made based on dp, at least, not by the SystemUI; the goal is to drive most of this switch from the window manager. Therefore most of SystemUI's sw600dp resources have been folded into the main set of resources (renaming them to avoid collisions where appropriate). This allows SystemUI to choose which set of resources to use entirely by switching status bar components, entirely independent of Configuration. (For some resources, particularly around recents, it seemed more expeditious to keep relying on the device configuration, so those resources have been bumped up to sw720dp.) Bug: 6297838 Change-Id: I3f5414a6a718bdc83f51930d6878cdf97df48c9c --- packages/SystemUI/res/values-sw720dp/config.xml | 8 ++++ packages/SystemUI/res/values-sw720dp/dimens.xml | 54 ++++++++++++++++++++++ .../SystemUI/res/values-sw720dp/donottranslate.xml | 27 +++++++++++ packages/SystemUI/res/values-sw720dp/styles.xml | 54 ++++++++++++++++++++++ 4 files changed, 143 insertions(+) create mode 100644 packages/SystemUI/res/values-sw720dp/donottranslate.xml create mode 100644 packages/SystemUI/res/values-sw720dp/styles.xml (limited to 'packages/SystemUI/res/values-sw720dp') diff --git a/packages/SystemUI/res/values-sw720dp/config.xml b/packages/SystemUI/res/values-sw720dp/config.xml index 56b8e54..8af700a 100644 --- a/packages/SystemUI/res/values-sw720dp/config.xml +++ b/packages/SystemUI/res/values-sw720dp/config.xml @@ -21,5 +21,13 @@ for different hardware and product builds. --> 5 + + + true + + + true diff --git a/packages/SystemUI/res/values-sw720dp/dimens.xml b/packages/SystemUI/res/values-sw720dp/dimens.xml index b16b1e8..36cbabf 100644 --- a/packages/SystemUI/res/values-sw720dp/dimens.xml +++ b/packages/SystemUI/res/values-sw720dp/dimens.xml @@ -27,5 +27,59 @@ 80dip + + + + + + + 360dp + + 36dp + + 8dp + + 512dp + + 770dp + + 56dp + + + + 28dp + + 64dp + + 64dp + + + 208dp + 130dp + + + 600dp + + 8dp + + 18dip + + 18dip + + 97dip + + 16dip + + 20dip + + 10dip + + 100dip + + + 0dp + 8dp diff --git a/packages/SystemUI/res/values-sw720dp/donottranslate.xml b/packages/SystemUI/res/values-sw720dp/donottranslate.xml new file mode 100644 index 0000000..0996067 --- /dev/null +++ b/packages/SystemUI/res/values-sw720dp/donottranslate.xml @@ -0,0 +1,27 @@ + + + + + %1$s\n%2$s + + + diff --git a/packages/SystemUI/res/values-sw720dp/styles.xml b/packages/SystemUI/res/values-sw720dp/styles.xml new file mode 100644 index 0000000..f3d4a0f --- /dev/null +++ b/packages/SystemUI/res/values-sw720dp/styles.xml @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + -- cgit v1.1