summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/res/layout-sw600dp
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2012-08-29 15:49:53 -0400
committerDaniel Sandler <dsandler@android.com>2012-08-29 20:11:21 -0400
commitc26185bb7b30508a1940eb452af64b6d8661915f (patch)
tree8f67b2b5286f0af11164924a0e734bb70009e432 /packages/SystemUI/res/layout-sw600dp
parent97d28d92c9a42db71d1855286fdd122e6b19ecef (diff)
downloadframeworks_base-c26185bb7b30508a1940eb452af64b6d8661915f.zip
frameworks_base-c26185bb7b30508a1940eb452af64b6d8661915f.tar.gz
frameworks_base-c26185bb7b30508a1940eb452af64b6d8661915f.tar.bz2
Expand the navbar dead zone briefly after touches elsewhere.
For now, each time the dead zone captures a touch, it will flash to let you know that's what happened. We should probably turn this off before shipping. Note also that this currently only expands the navbar on ACTION_DOWN elsewhere in the UI (because this is the only time ACTION_OUTSIDE is generated); this isn't perfect and we'll need to do some mucking about with the input system to get information about ongoing drags or additional pointers down, but this CL is a good start and introduces the general mechanism for expanding and contracting the dead zone. Change-Id: I43e63aed1e541fd07d83fde4d66bcb5be89b69d2
Diffstat (limited to 'packages/SystemUI/res/layout-sw600dp')
-rw-r--r--packages/SystemUI/res/layout-sw600dp/navigation_bar.xml14
1 files changed, 12 insertions, 2 deletions
diff --git a/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml b/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
index 67e13eb..fbbd7e5 100644
--- a/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
+++ b/packages/SystemUI/res/layout-sw600dp/navigation_bar.xml
@@ -143,8 +143,13 @@
<com.android.systemui.statusbar.policy.DeadZone
android:id="@+id/deadzone"
- android:layout_height="@dimen/navigation_bar_deadzone_size"
+ android:layout_height="match_parent"
android:layout_width="match_parent"
+ systemui:minSize="@dimen/navigation_bar_deadzone_size"
+ systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
+ systemui:holdTime="@integer/navigation_bar_deadzone_hold"
+ systemui:decayTime="@integer/navigation_bar_deadzone_decay"
+ systemui:orientation="horizontal"
android:layout_gravity="top"
/>
</FrameLayout>
@@ -269,8 +274,13 @@
<com.android.systemui.statusbar.policy.DeadZone
android:id="@+id/deadzone"
- android:layout_height="@dimen/navigation_bar_deadzone_size"
+ android:layout_height="match_parent"
android:layout_width="match_parent"
+ systemui:minSize="@dimen/navigation_bar_deadzone_size"
+ systemui:maxSize="@dimen/navigation_bar_deadzone_size_max"
+ systemui:holdTime="@integer/navigation_bar_deadzone_hold"
+ systemui:decayTime="@integer/navigation_bar_deadzone_decay"
+ systemui:orientation="vertical"
android:layout_gravity="top"
/>
</FrameLayout>