Home | History | Annotate | Download | only in values
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2006 The Android Open Source Project
      3 
      4      Licensed under the Apache License, Version 2.0 (the "License");
      5      you may not use this file except in compliance with the License.
      6      You may obtain a copy of the License at
      7 
      8           http://www.apache.org/licenses/LICENSE-2.0
      9 
     10      Unless required by applicable law or agreed to in writing, software
     11      distributed under the License is distributed on an "AS IS" BASIS,
     12      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13      See the License for the specific language governing permissions and
     14      limitations under the License.
     15 -->
     16 
     17 <!-- Formatting note: terminate all comments with a period, to avoid breaking
     18      the documentation output. To suppress comment lines from the documentation
     19      output, insert an eat-comment element after the comment lines.
     20 -->
     21 
     22 <resources>
     23     <!-- Standard gravity constant that a child supplies to its parent.
     24          Defines how the child view should be positioned, on both the X and Y axes, within its enclosing layout. -->
     25     <attr name="layout_gravity">
     26         <!-- Push object to the top of its container, not changing its size. -->
     27         <flag name="top" value="0x30" />
     28         <!-- Push object to the bottom of its container, not changing its size. -->
     29         <flag name="bottom" value="0x50" />
     30         <!-- Push object to the left of its container, not changing its size. -->
     31         <flag name="left" value="0x03" />
     32         <!-- Push object to the right of its container, not changing its size. -->
     33         <flag name="right" value="0x05" />
     34         <!-- Place object in the vertical center of its container, not changing its size. -->
     35         <flag name="center_vertical" value="0x10" />
     36         <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
     37         <flag name="fill_vertical" value="0x70" />
     38         <!-- Place object in the horizontal center of its container, not changing its size. -->
     39         <flag name="center_horizontal" value="0x01" />
     40         <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
     41         <flag name="fill_horizontal" value="0x07" />
     42         <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
     43         <flag name="center" value="0x11" />
     44         <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
     45         <flag name="fill" value="0x77" />
     46         <!-- Additional option that can be set to have the top and/or bottom edges of
     47              the child clipped to its container's bounds.
     48              The clip will be based on the vertical gravity: a top gravity will clip the bottom
     49              edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
     50         <flag name="clip_vertical" value="0x80" />
     51         <!-- Additional option that can be set to have the left and/or right edges of
     52              the child clipped to its container's bounds.
     53              The clip will be based on the horizontal gravity: a left gravity will clip the right
     54              edge, a right gravity will clip the left edge, and neither will clip both edges. -->
     55         <flag name="clip_horizontal" value="0x08" />
     56         <!-- Push object to the beginning of its container, not changing its size. -->
     57         <flag name="start" value="0x00800003" />
     58         <!-- Push object to the end of its container, not changing its size. -->
     59         <flag name="end" value="0x00800005" />
     60     </attr>
     61 
     62 
     63     <!-- PagedView specific attributes. These attributes are used to customize
     64          a PagedView view in XML files. -->
     65     <declare-styleable name="PagedView">
     66         <!-- The space between adjacent pages of the PagedView. -->
     67         <attr name="pageSpacing" format="dimension" />
     68         <!-- The padding for the scroll indicator area -->
     69         <attr name="scrollIndicatorPaddingLeft" format="dimension" />
     70         <attr name="scrollIndicatorPaddingRight" format="dimension" />
     71     </declare-styleable>
     72 
     73     <declare-styleable name="KeyguardGlowStripView">
     74         <attr name="dotSize" format="dimension" />
     75         <attr name="numDots" format="integer" />
     76         <attr name="glowDot" format="reference" />
     77         <attr name="leftToRight" format="boolean" />
     78     </declare-styleable>
     79 
     80     <!-- Some child types have special behavior. -->
     81     <attr name="layout_childType">
     82         <!-- No special behavior. Layout will proceed as normal. -->
     83         <enum name="none" value="0" />
     84         <!-- Widget container.
     85              This will be resized in response to certain events. -->
     86         <enum name="widget" value="1" />
     87         <!-- Security challenge container.
     88              This will be dismissed/shown in response to certain events,
     89              possibly obscuring widget elements. -->
     90         <enum name="challenge" value="2" />
     91         <!-- User switcher.
     92              This will consume space from the total layout area. -->
     93         <enum name="userSwitcher" value="3" />
     94         <!-- Scrim. This will block access to child views that
     95              come before it in the child list in bouncer mode. -->
     96         <enum name="scrim" value="4" />
     97         <!-- The home for widgets. All widgets will be descendents of this. -->
     98         <enum name="widgets" value="5" />
     99         <!-- This is a handle that is used for expanding the
    100              security challenge container when it is collapsed. -->
    101         <enum name="expandChallengeHandle" value="6" />
    102         <!-- Delete drop target.  This will be the drop target to delete pages. -->
    103         <enum name="pageDeleteDropTarget" value="7" />
    104     </attr>
    105 
    106     <declare-styleable name="SlidingChallengeLayout_Layout">
    107         <attr name="layout_childType" />
    108         <attr name="layout_maxHeight" format="dimension" />
    109     </declare-styleable>
    110 
    111     <declare-styleable name="MultiPaneChallengeLayout">
    112         <!-- Influences how layout_centerWithinArea behaves -->
    113         <attr name="android:orientation" />
    114     </declare-styleable>
    115 
    116     <declare-styleable name="MultiPaneChallengeLayout_Layout">
    117         <!-- Percentage of the screen this child should consume or center within.
    118              If 0/default, the view will be measured by standard rules
    119              as if this were a FrameLayout. -->
    120         <attr name="layout_centerWithinArea" format="float" />
    121         <attr name="layout_childType" />
    122         <attr name="layout_gravity" />
    123         <attr name="layout_maxWidth" format="dimension" />
    124         <attr name="layout_maxHeight" />
    125     </declare-styleable>
    126 
    127     <declare-styleable name="KeyguardSecurityViewFlipper_Layout">
    128         <attr name="layout_maxWidth" />
    129         <attr name="layout_maxHeight" />
    130     </declare-styleable>
    131 
    132     <declare-styleable name="NumPadKey">
    133         <attr name="digit" format="integer" />
    134         <attr name="textView" format="reference" />
    135     </declare-styleable>
    136 
    137     <declare-styleable name="PasswordTextView">
    138         <attr name="scaledTextSize" format="integer" />
    139     </declare-styleable>
    140 
    141     <declare-styleable name="CarrierText">
    142         <attr name="allCaps" format="boolean" />
    143     </declare-styleable>
    144 </resources>
    145