• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3/* Copyright 2008, 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
19<resources>
20    <!-- Orientation of a widget. -->
21    <attr name="direction">
22        <!-- Vertical widget. -->
23        <enum name="vertical" value="0" />
24        <!-- Horizontal widget. -->
25        <enum name="horizontal" value="1" />
26    </attr>
27
28    <skip />
29
30    <!-- Cling specific attributes. These attributes are used to customize
31         the cling in XML files. -->
32    <declare-styleable name="Cling">
33        <!-- Used to identify how to draw the cling bg -->
34        <attr name="drawIdentifier" format="string"  />
35    </declare-styleable>
36
37    <!-- Workspace specific attributes. These attributes are used to customize
38         the workspace in XML files. -->
39    <declare-styleable name="Workspace">
40        <!-- The first screen the workspace should display. -->
41        <attr name="defaultScreen" format="integer"  />
42        <!-- The number of horizontal cells in the CellLayout -->
43        <attr name="cellCountX" format="integer"  />
44        <!-- The number of vertical cells in the CellLayout -->
45        <attr name="cellCountY" format="integer"  />
46    </declare-styleable>
47
48    <!-- Hotseat specific attributes. These attributes are used to customize
49         the hotseat in XML files. -->
50    <declare-styleable name="Hotseat">
51        <!-- The number of horizontal cells in the CellLayout -->
52        <attr name="cellCountX" />
53        <!-- The number of vertical cells in the CellLayout -->
54        <attr name="cellCountY" />
55    </declare-styleable>
56
57    <!-- CellLayout specific attributes. These attributes are used to customize
58         a CellLayout view in XML files. -->
59    <declare-styleable name="CellLayout">
60        <!-- The width of a single cell -->
61        <attr name="cellWidth" format="dimension"  />
62        <!-- The height of a single cell -->
63        <attr name="cellHeight" format="dimension"  />
64        <!-- An override for the width and height gap to allow users to specify
65             a specific size for the page using spacing instead of resolving the
66             spacing from the width of the page -->
67        <attr name="widthGap" format="dimension" />
68        <attr name="heightGap" format="dimension" />
69        <!-- The max gap size for each dimension -->
70        <attr name="maxGap" format="dimension" />
71    </declare-styleable>
72
73    <!-- StrokedTextView specific attributes. -->
74    <declare-styleable name="StrokedTextView">
75        <!-- The color of the stroke outline -->
76        <attr name="strokeColor" format="color" />
77        <!-- The color of the text -->
78        <attr name="strokeTextColor" format="color" />
79        <!-- The width of the stroke -->
80        <attr name="strokeWidth" format="float" />
81    </declare-styleable>
82
83    <!-- PagedViewIcon specific attributes. These attributes are used to customize
84         a PagedViewIcon view in XML files. -->
85    <declare-styleable name="PagedViewIcon">
86        <!-- The blur color of the holographic outline -->
87        <attr name="blurColor" format="color" />
88        <!-- The outline color of the holographic outline -->
89        <attr name="outlineColor" format="color" />
90    </declare-styleable>
91
92    <!-- PagedViewWidget specific attributes. These attributes are used to
93         customize a PagedViewWidget view in XML files. -->
94    <declare-styleable name="PagedViewWidget">
95        <!-- The blur color of the holographic outline -->
96        <attr name="blurColor" />
97        <!-- The outline color of the holographic outline -->
98        <attr name="outlineColor" />
99    </declare-styleable>
100
101    <!-- PagedView specific attributes. These attributes are used to customize
102         a PagedView view in XML files. -->
103    <declare-styleable name="PagedView">
104        <!-- The number of horizontal cells in a page -->
105        <attr name="cellCountX" />
106        <!-- The number of vertical cells in a page -->
107        <attr name="cellCountY" />
108        <!-- A spacing override for the icons within a page -->
109        <attr name="pageLayoutWidthGap" format="dimension" />
110        <attr name="pageLayoutHeightGap" format="dimension" />
111        <!-- The padding of the pages that are dynamically created per page -->
112        <attr name="pageLayoutPaddingTop" format="dimension" />
113        <attr name="pageLayoutPaddingBottom" format="dimension" />
114        <attr name="pageLayoutPaddingLeft" format="dimension" />
115        <attr name="pageLayoutPaddingRight" format="dimension" />
116        <!-- The space between adjacent pages of the PagedView. -->
117        <attr name="pageSpacing" format="dimension" />
118        <!-- The padding for the scroll indicator area -->
119        <attr name="scrollIndicatorPaddingLeft" format="dimension" />
120        <attr name="scrollIndicatorPaddingRight" format="dimension" />
121    </declare-styleable>
122
123    <!-- AppsCustomizePagedView specific attributes.  These attributes are used to
124         customize an AppsCustomizePagedView in xml files. -->
125    <declare-styleable name="AppsCustomizePagedView">
126        <!-- Horizontal spacing between widgets and wallpapers -->
127        <attr name="widgetCellWidthGap" format="dimension" />
128        <!-- Vertical spacing between widgets -->
129        <attr name="widgetCellHeightGap" format="dimension" />
130        <!-- Number of widgets horizontally -->
131        <attr name="widgetCountX" format="integer" />
132        <!-- Number of widgets vertically -->
133        <attr name="widgetCountY" format="integer" />
134        <!-- The x index of the item to be focused in the cling -->
135        <attr name="clingFocusedX" format="integer" />
136        <!-- The y index of the item to be focused in the cling -->
137        <attr name="clingFocusedY" format="integer" />
138    </declare-styleable>
139
140    <!-- HandleView specific attributes. These attributes are used to customize
141         a HandleView view in XML files. -->
142    <declare-styleable name="HandleView">
143        <!-- Orientation of the handle. -->
144        <attr name="direction" />
145    </declare-styleable>
146
147    <!-- XML attributes used by default_workspace.xml -->
148    <declare-styleable name="Favorite">
149        <attr name="className" format="string" />
150        <attr name="packageName" format="string" />
151        <attr name="container" format="string" />
152        <attr name="screen" format="string" />
153        <attr name="x" format="string" />
154        <attr name="y" format="string" />
155        <attr name="spanX" format="string" />
156        <attr name="spanY" format="string" />
157        <attr name="icon" format="reference" />
158        <attr name="title" format="reference" />
159        <attr name="uri" format="string" />
160    </declare-styleable>
161</resources>
162