c26185bb7b
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
52 lines
2.0 KiB
XML
52 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2010 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>
|
|
<declare-styleable name="KeyButtonView">
|
|
<!-- key code to send when pressed; if absent or 0, no key is sent -->
|
|
<attr name="keyCode" format="integer" />
|
|
<!-- does this button generate longpress / repeat events? -->
|
|
<attr name="keyRepeat" format="boolean" />
|
|
<!-- drawable to use for a swelling, glowing background on press -->
|
|
<attr name="glowBackground" format="reference" />
|
|
</declare-styleable>
|
|
<declare-styleable name="ToggleSlider">
|
|
<attr name="text" format="string" />
|
|
</declare-styleable>
|
|
<declare-styleable name="NotificationLinearLayout">
|
|
<attr name="insetLeft" format="dimension" />
|
|
</declare-styleable>
|
|
<declare-styleable name="NotificationRowLayout">
|
|
<attr name="rowHeight" format="dimension" />
|
|
</declare-styleable>
|
|
<declare-styleable name="RecentsPanelView">
|
|
<attr name="recentItemLayout" format="reference" />
|
|
</declare-styleable>
|
|
<declare-styleable name="DeadZone">
|
|
<attr name="minSize" format="dimension" />
|
|
<attr name="maxSize" format="dimension" />
|
|
<attr name="holdTime" format="integer" />
|
|
<attr name="decayTime" format="integer" />
|
|
<attr name="orientation" />
|
|
</declare-styleable>
|
|
|
|
<attr name="orientation">
|
|
<enum name="horizontal" value="0" />
|
|
<enum name="vertical" value="1" />
|
|
</attr>
|
|
</resources>
|
|
|