summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2010-06-01 14:48:12 -0700
committerDaniel Sandler <dsandler@android.com>2010-06-03 10:35:44 -0700
commit86b40541a8f48287fed0663f1e6ac10610523d32 (patch)
treee408b11a173ef07231392bed57a0bd6a32dab7ca /res/values
parent8802e960495e61803c18ea3dda2e30ef0a611d8f (diff)
downloadpackages_apps_trebuchet-86b40541a8f48287fed0663f1e6ac10610523d32.zip
packages_apps_trebuchet-86b40541a8f48287fed0663f1e6ac10610523d32.tar.gz
packages_apps_trebuchet-86b40541a8f48287fed0663f1e6ac10610523d32.tar.bz2
Make 2D All Apps work better in landscape and on hdpi.
* Correct the density (or, rather, remove the density) of the icons in the cache to ensure they're drawn px-for-px. * Create a new landscape layout for 2DAA that aligns things properly (viz: Home icon at right, padding tuned, 6 columns). * Performance improvement: Make the app grid, icons, and home icon all opaque (by setting a black background) and move the home icon so it doesn't overlap the grid. Change-Id: I961323e9e39cb122cdc694853706e7fcdd10142f
Diffstat (limited to 'res/values')
-rw-r--r--res/values/dimens.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/values/dimens.xml b/res/values/dimens.xml
index 26cb7e6..790f835 100644
--- a/res/values/dimens.xml
+++ b/res/values/dimens.xml
@@ -24,6 +24,10 @@
button_bar_height changes -->
<dimen name="button_bar_height_portrait">56dip</dimen>
+ <!-- roughly a status bar (for vertically centering the all apps
+ home icon in landscape) -->
+ <dimen name="status_bar_height">25dip</dimen>
+
<!-- roughly half a status bar (for vertically centering the right-hand
button cluster in landscape) -->
<dimen name="half_status_bar_height">12dip</dimen>