summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/values-land
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2011-04-22 07:55:02 -0400
committerDaniel Sandler <dsandler@google.com>2011-04-27 15:00:31 -0400
commit8956dbbc5f292d8b79072ae73b25f2114c8c7479 (patch)
treec4519bd579f2520324a7e759e96dbf93f9168fac /packages/SystemUI/res/values-land
parent6d8a98afb0bda0d8a38b8839af94918c76a8fd2c (diff)
downloadframeworks_base-8956dbbc5f292d8b79072ae73b25f2114c8c7479.zip
frameworks_base-8956dbbc5f292d8b79072ae73b25f2114c8c7479.tar.gz
frameworks_base-8956dbbc5f292d8b79072ae73b25f2114c8c7479.tar.bz2
On-screen navigation bar (separate from the status bar).
In Honeycomb we introduced navigation controls in the status bar, for xlarge devices without physical buttons. What about phones? The status bar is pretty cramped already, and besides, it's at the top of the display most of the time, not at the bottom where your thumb is likely to be. Enter the navigation bar. It's a new window type that appears atop almost everything (including the keyguard); the window manager subtracts its rectangle from the default visible rectangle of other windows (including the status bar and notification shade). However, it behaves (on phones) like the status bar in that applications that request fullscreen windows can get access to those pixels. Well, almost; they need cooperation from the navigation bar implementation to make the navbar disappear, just like the status bar. The current SystemUI implementation of the navigation bar on phones is still rough, but it has the basics: + back, home, and menu keys (NB: we're showing menu all the time right now because checking the api level of the package owning the top window is currently a poor indicator of whether the app requires the menu key) + it tries to stick to the same physical end of the device, regardless of device orientation (on a phone, this is the strip of land closest to the microphone) Change-Id: Ic613a3351220af0bbfbdef63e1d99cbefd5ed1c2
Diffstat (limited to 'packages/SystemUI/res/values-land')
-rw-r--r--packages/SystemUI/res/values-land/dimens.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/SystemUI/res/values-land/dimens.xml b/packages/SystemUI/res/values-land/dimens.xml
new file mode 100644
index 0000000..bcc8da1
--- /dev/null
+++ b/packages/SystemUI/res/values-land/dimens.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ * Copyright (c) 2011, The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+*/
+-->
+<resources>
+ <!-- thickness (width) of the navigation bar on phones that require it -->
+ <dimen name="navigation_bar_size">42dp</dimen>
+</resources>