1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2013 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License
16  -->
17
18<resources>
19    <declare-styleable name="GlowPadView">
20        <attr name="android:gravity"/>
21
22        <!-- Reference to an array resource that be shown as targets around a circle. -->
23        <attr name="targetDrawables" format="reference"/>
24
25        <!-- Reference to an array resource that be used as description for the targets around the circle. -->
26        <attr name="targetDescriptions" format="reference"/>
27
28        <!-- Reference to an array resource that be used to announce the directions with targets around the circle. -->
29        <attr name="directionDescriptions" format="reference"/>
30
31        <!-- Sets a drawable as the center. -->
32        <attr name="handleDrawable" format="reference"/>
33
34        <!-- Drawable to use for wave ripple animation. -->
35        <attr name="outerRingDrawable" format="reference"/>
36
37        <!-- Drawble used for drawing points -->
38        <attr name="pointDrawable" format="reference"/>
39
40        <!-- Inner radius of glow area. -->
41        <attr name="innerRadius" format="dimension"/>
42
43        <!-- Outer radius of glow area. Target icons will be drawn on this circle. -->
44        <attr name="outerRadius" format="dimension"/>
45
46        <!-- Size of target radius. Points within this distance of target center is a "hit". -->
47        <!--
48        <attr name="hitRadius" format="dimension"/>
49        -->
50
51        <!-- Radius of glow under finger. -->
52        <attr name="glowRadius" format="dimension"/>
53
54        <!-- Tactile feedback duration for actions. Set to '0' for no vibration. -->
55        <attr name="vibrationDuration" format="integer"/>
56
57        <!-- How close we need to be before snapping to a target. -->
58        <attr name="snapMargin" format="dimension"/>
59
60        <!-- Number of waves/chevrons to show in animation. -->
61        <attr name="feedbackCount" format="integer"/>
62
63        <!-- Used when the handle shouldn't wait to be hit before following the finger -->
64        <attr name="alwaysTrackFinger" format="boolean"/>
65
66        <!-- Determine whether the glow pad is allowed to scale to fit the bounds indicated
67            by its parent. If this is set to false, no scaling will occur. If this is set to true
68            scaling will occur to fit for any axis in which gravity is set to center. -->
69        <attr name="allowScaling" format="boolean" />
70    </declare-styleable>
71</resources>
72