Home | History | Annotate | Download | only in values
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3  * Copyright (C) 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 <resources>
     19     <declare-styleable name="Style1">
     20         <attr name="Type1" format="integer">
     21             <enum name="type" value="28" />
     22             <enum name="data" value="0xff00ff00" />
     23             <enum name="asset_cookie" value="0" />
     24             <enum name="resource_id" value="0" />
     25             <enum name="changing_config" value="0" />
     26         </attr>
     27         <attr name="Type2" format="integer">
     28             <enum name="type" value="28" />
     29             <enum name="data" value="0xff0000ff" />
     30             <enum name="asset_cookie" value="0" />
     31             <enum name="resource_id" value="0" />
     32             <enum name="changing_config" value="0" />
     33         </attr>
     34     </declare-styleable>
     35     <attr name="type1" format="boolean"/>
     36     <attr name="type2" format="boolean"/>
     37     <attr name="type3" format="color"/>
     38     <attr name="type4" format="reference|color"/>
     39     <attr name="type5" format="dimension"/>
     40     <attr name="type6" format="dimension"/>
     41     <attr name="type7" format="dimension"/>
     42     <attr name="type8" format="reference"/>
     43     <attr name="type9" format="float"/>
     44     <attr name="type10" format="fraction"/>
     45     <attr name="type11" format="integer"/>
     46     <attr name="type12" format="integer"/>
     47     <attr name="type13" format="reference|string"/>
     48     <attr name="type14" format="string"/>
     49     <attr name="type15" format="reference"/>
     50     <attr name="type16" format="string"/>
     51     <declare-styleable name="style1">
     52         <attr name="type1"/>
     53         <attr name="type2"/>
     54         <attr name="type3"/>
     55         <attr name="type4"/>
     56         <attr name="type5"/>
     57         <attr name="type6"/>
     58         <attr name="type7"/>
     59         <attr name="type8"/>
     60         <attr name="type9"/>
     61         <attr name="type10"/>
     62         <attr name="type11"/>
     63         <attr name="type12"/>
     64         <attr name="type13"/>
     65         <attr name="type14"/>
     66         <attr name="type15"/>
     67         <attr name="type16"/>
     68     </declare-styleable>
     69     <attr name="testEnum">
     70         <enum name="val1" value="1" />
     71         <enum name="val2" value="2" />
     72         <enum name="val10" value="10" />
     73     </attr>
     74     <attr name="testFlags">
     75         <flag name="bit1" value="0x1" />
     76         <flag name="bit2" value="0x2" />
     77         <flag name="bit31" value="0x40000000" />
     78     </attr>
     79     <attr name="testString" format="string" />
     80     <declare-styleable name="EnumStyle">
     81         <attr name="testEnum" />
     82     </declare-styleable>
     83     <declare-styleable name="FlagStyle">
     84         <attr name="testFlags" />
     85     </declare-styleable>
     86     <declare-styleable name="TestConfig">
     87         <attr name="testString" />
     88     </declare-styleable>
     89     <!-- Size of text. Recommended dimension type for text is "sp" for scaled-pixels (example: 15sp).
     90          Supported values include the following:<p/>
     91     <ul>
     92         <li><b>px</b> Pixels</li>
     93         <li><b>sp</b> Scaled pixels (scaled to relative pixel size on screen). See {@link android.util.DisplayMetrics} for more information.</li>
     94         <li><b>pt</b> Points</li>
     95         <li><b>dip</b> Device independent pixels. See {@link android.util.DisplayMetrics} for more information.</li>
     96     </ul>
     97     -->
     98     <attr name="textSize" format="dimension" />
     99     <attr name="typeface">
    100         <enum name="normal" value="0" />
    101         <enum name="sans" value="1" />
    102         <enum name="serif" value="2" />
    103         <enum name="monospace" value="3" />
    104     </attr>
    105     <!-- Default text typeface style. -->
    106     <attr name="textStyle">
    107         <flag name="normal" value="0" />
    108         <flag name="bold" value="1" />
    109         <flag name="italic" value="2" />
    110     </attr>
    111     <!-- Color of text (usually same as colorForeground). -->
    112     <attr name="textColor" format="reference|color" />
    113     <!-- Color of highlighted text. -->
    114     <attr name="textColorHighlight" format="reference|color" />
    115     <!-- Color of hint text (displayed when the field is empty). -->
    116     <attr name="textColorHint" format="reference|color" />
    117     <!-- Color of link text (URLs). -->
    118     <attr name="textColorLink" format="reference|color" />
    119     <declare-styleable name="TextAppearance">
    120         <attr name="textColor"/>
    121         <attr name="textSize"/>
    122         <attr name="textStyle"/>
    123         <attr name="typeface"/>
    124         <attr name="textColorHighlight"/>
    125         <attr name="textColorHint"/>
    126         <attr name="textColorLink"/>
    127     </declare-styleable>
    128 </resources>
    129