OSDN Git Service

Initial Contribution
[android-x86/packages-apps-Launcher.git] / res / values / attrs.xml
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     <!-- Workspace specific attributes. These attributes are used to customize
21          the workspace in XML files. -->
22     <declare-styleable name="Workspace">
23         <!-- The first screen the workspace should display. -->
24         <attr name="defaultScreen" format="integer"  />
25     </declare-styleable>
26     
27     <!-- CellLayout specific attributes. These attributes are used to customize
28          a CellLayout view in XML files. -->
29     <declare-styleable name="CellLayout">
30         <!-- The width of a single cell -->
31         <attr name="cellWidth" format="dimension"  />
32         <!-- The height of a single cell -->
33         <attr name="cellHeight" format="dimension"  />
34         <!-- Padding to apply at the start of the long axis -->
35         <attr name="longAxisStartPadding" format="dimension"  />
36         <!-- Padding to apply at the end of the long axis -->
37         <attr name="longAxisEndPadding" format="dimension"  />
38         <!-- Padding to apply at the start of the short axis -->
39         <attr name="shortAxisStartPadding" format="dimension"  />
40         <!-- Padding to apply at the end of the short axis -->
41         <attr name="shortAxisEndPadding" format="dimension"  />
42         <!-- Number of cells on the short axis of the CellLayout -->
43         <attr name="shortAxisCells" format="integer" />
44         <!-- Number of cells on the long axis of the CellLayout -->
45         <attr name="longAxisCells" format="integer" />
46     </declare-styleable>
47
48     <!-- DeleteZone specific attributes. These attributes are used to customize
49          a DeleteZone view in XML files. -->
50     <declare-styleable name="DeleteZone">
51         <!-- Orientation of the delete zone. -->
52         <attr name="direction">
53             <!-- Vertical delete zone. -->
54             <enum name="vertical" value="0" />
55             <!-- Horizontal delete zone. This is the default value. -->
56             <enum name="horizontal" value="1" />
57         </attr>
58     </declare-styleable>
59
60 </resources>