Home | History | Annotate | Download | only in values
      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     <!-- HolographicLinearLayout specific attributes. -->
     84     <declare-styleable name="HolographicLinearLayout">
     85         <!-- The source view to generate and apply the drawable states to/from -->
     86         <attr name="sourceImageViewId" format="integer" />
     87     </declare-styleable>
     88 
     89     <!-- PagedViewIcon specific attributes. These attributes are used to customize
     90          a PagedViewIcon view in XML files. -->
     91     <declare-styleable name="PagedViewIcon">
     92         <!-- The blur color of the holographic outline -->
     93         <attr name="blurColor" format="color" />
     94         <!-- The outline color of the holographic outline -->
     95         <attr name="outlineColor" format="color" />
     96     </declare-styleable>
     97 
     98     <!-- PagedViewWidget specific attributes. These attributes are used to
     99          customize a PagedViewWidget view in XML files. -->
    100     <declare-styleable name="PagedViewWidget">
    101         <!-- The blur color of the holographic outline -->
    102         <attr name="blurColor" />
    103         <!-- The outline color of the holographic outline -->
    104         <attr name="outlineColor" />
    105     </declare-styleable>
    106 
    107     <!-- PagedView specific attributes. These attributes are used to customize
    108          a PagedView view in XML files. -->
    109     <declare-styleable name="PagedView">
    110         <!-- A spacing override for the icons within a page -->
    111         <attr name="pageLayoutWidthGap" format="dimension" />
    112         <attr name="pageLayoutHeightGap" format="dimension" />
    113         <!-- The padding of the pages that are dynamically created per page -->
    114         <attr name="pageLayoutPaddingTop" format="dimension" />
    115         <attr name="pageLayoutPaddingBottom" format="dimension" />
    116         <attr name="pageLayoutPaddingLeft" format="dimension" />
    117         <attr name="pageLayoutPaddingRight" format="dimension" />
    118         <!-- The space between adjacent pages of the PagedView. -->
    119         <attr name="pageSpacing" format="dimension" />
    120         <!-- The padding for the scroll indicator area -->
    121         <attr name="scrollIndicatorPaddingLeft" format="dimension" />
    122         <attr name="scrollIndicatorPaddingRight" format="dimension" />
    123     </declare-styleable>
    124 
    125     <!-- AppsCustomizePagedView specific attributes.  These attributes are used to
    126          customize an AppsCustomizePagedView in xml files. -->
    127     <declare-styleable name="AppsCustomizePagedView">
    128         <!-- Max number of cells of applications horizontally -->
    129         <attr name="maxAppCellCountX" format="integer" />
    130         <!-- Max number of cells of applications vertically -->
    131         <attr name="maxAppCellCountY" format="integer" />
    132         <!-- Horizontal spacing between widgets and wallpapers -->
    133         <attr name="widgetCellWidthGap" format="dimension" />
    134         <!-- Vertical spacing between widgets -->
    135         <attr name="widgetCellHeightGap" format="dimension" />
    136         <!-- Number of widgets horizontally -->
    137         <attr name="widgetCountX" format="integer" />
    138         <!-- Number of widgets vertically -->
    139         <attr name="widgetCountY" format="integer" />
    140         <!-- The x index of the item to be focused in the cling -->
    141         <attr name="clingFocusedX" format="integer" />
    142         <!-- The y index of the item to be focused in the cling -->
    143         <attr name="clingFocusedY" format="integer" />
    144     </declare-styleable>
    145 
    146     <!-- HandleView specific attributes. These attributes are used to customize
    147          a HandleView view in XML files. -->
    148     <declare-styleable name="HandleView">
    149         <!-- Orientation of the handle. -->
    150         <attr name="direction" />
    151     </declare-styleable>
    152 
    153     <!-- XML attributes used by default_workspace.xml -->
    154     <declare-styleable name="Favorite">
    155         <attr name="className" format="string" />
    156         <attr name="packageName" format="string" />
    157         <attr name="container" format="string" />
    158         <attr name="screen" format="string" />
    159         <attr name="x" format="string" />
    160         <attr name="y" format="string" />
    161         <attr name="spanX" format="string" />
    162         <attr name="spanY" format="string" />
    163         <attr name="icon" format="reference" />  
    164         <attr name="title" format="reference" />
    165         <attr name="uri" format="string" />
    166     </declare-styleable>
    167 </resources>
    168