summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2011-08-04 09:35:13 -0400
committerDaniel Sandler <dsandler@google.com>2011-08-10 16:10:59 -0400
commit36412a7e7c4929bdac1221b7ced9e73d0d204691 (patch)
tree75598311916a8a26dad82b182adcca02d863a8ed /core
parentaba367eea4792a1d3778061181e3a38e188f4f06 (diff)
downloadframeworks_base-36412a7e7c4929bdac1221b7ced9e73d0d204691.zip
frameworks_base-36412a7e7c4929bdac1221b7ced9e73d0d204691.tar.gz
frameworks_base-36412a7e7c4929bdac1221b7ced9e73d0d204691.tar.bz2
Subtract the navigation bar from DisplayMetrics.
Its region is now treated like the system bar: inaccessible to applications and therefore not worth reporting as part of the display. (Note that using setSystemUiVisibility you can gain temporary access to the navigation bar region, unlike the sempiternal system bar.) The navigation bar is now considerably less in control of its own behavior (the window manager assumes it will be a certain size and in a certain position in landscape and portrait). This change also fixes the navbar so that it becomes GONE instead of merely INVISIBLE (allowing underlying windows to expand in size accordingly). Bug: 5052456 // the feature Bug: 5067627 // notification shade falling behind the navbar Bug: 4959805 // fix third-party apps relying on DisplayMetrics Change-Id: I60257fc5c858e0edcaba8cfc1f8d58dd99a68258
Diffstat (limited to 'core')
-rw-r--r--core/res/res/values/dimens.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml
index e534e9b..829f757 100644
--- a/core/res/res/values/dimens.xml
+++ b/core/res/res/values/dimens.xml
@@ -32,8 +32,12 @@
<dimen name="toast_y_offset">64dip</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height">25dip</dimen>
- <!-- Height of the system bar -->
+ <!-- Height of the system bar (combined status + navigation, used on large screens) -->
<dimen name="system_bar_height">48dip</dimen>
+ <!-- Height of the horizontal navigation bar on devices that require it -->
+ <dimen name="navigation_bar_height">48dp</dimen>
+ <!-- Width of the vertical navigation bar on devices that require it -->
+ <dimen name="navigation_bar_width">42dp</dimen>
<!-- Height of notification icons in the status bar -->
<dimen name="status_bar_icon_size">24dip</dimen>
<!-- Size of the giant number (unread count) in the notifications -->