Home | History | Annotate | Download | only in values
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3     Copyright (C) 2015 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 
     20     <!-- Theme attributes -->
     21     <attr name="suwLayoutTheme" format="reference" />
     22     <attr name="suwMarginSides" format="dimension|reference" />
     23 
     24     <!-- Subset of values in "gravity" in frameworks/base/core/res/res/values/attrs.xml. Only
     25          horizontal values are listed here as the header does not support vertical gravity. -->
     26     <attr name="suwGlifHeaderGravity">
     27         <!-- Push object to the left of its container, not changing its size. -->
     28         <flag name="left" value="0x03" />
     29         <!-- Push object to the right of its container, not changing its size. -->
     30         <flag name="right" value="0x05" />
     31         <!-- Place object in the horizontal center of its container, not changing its size. -->
     32         <flag name="center_horizontal" value="0x01" />
     33         <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
     34         <flag name="fill_horizontal" value="0x07" />
     35         <!-- Push object to the beginning of its container, not changing its size. -->
     36         <flag name="start" value="0x00800003" />
     37         <!-- Push object to the end of its container, not changing its size. -->
     38         <flag name="end" value="0x00800005" />
     39     </attr>
     40 
     41     <attr name="suwCardBackground" format="color|reference" />
     42     <attr name="suwFillContentLayoutStyle" format="reference" />
     43     <attr name="suwDividerCondition">
     44         <enum name="either" value="0" />
     45         <enum name="both" value="1" />
     46     </attr>
     47     <attr name="suwListItemIconColor" format="color" />
     48     <attr name="suwNavBarBackgroundColor" format="color" />
     49     <attr name="suwNavBarButtonBackground" format="color|reference" />
     50     <attr name="suwNavBarTextColor" format="color" />
     51     <attr name="suwNavBarTheme" format="reference" />
     52 
     53     <!-- Values copied from frameworks/base/core/res/res/values/attrs.xml -->
     54     <attr name="suwScrollIndicators">
     55         <!-- No scroll indicators are displayed. -->
     56         <flag name="none" value="0x00" />
     57         <!-- Displays top scroll indicator when view can be scrolled up. -->
     58         <flag name="top" value="0x01" />
     59         <!-- Displays bottom scroll indicator when vew can be scrolled down. -->
     60         <flag name="bottom" value="0x02" />
     61         <!-- Displays left scroll indicator when vew can be scrolled left. -->
     62         <flag name="left" value="0x04" />
     63         <!-- Displays right scroll indicator when vew can be scrolled right. -->
     64         <flag name="right" value="0x08" />
     65         <!-- Displays right scroll indicator when vew can be scrolled in the
     66              start direction. -->
     67         <flag name="start" value="0x10" />
     68         <!-- Displays right scroll indicator when vew can be scrolled in the
     69              end direction. -->
     70         <flag name="end" value="0x20" />
     71     </attr>
     72 
     73     <!-- Custom view attributes -->
     74     <attr name="suwColorPrimary" format="color" />
     75     <attr name="suwHeader" format="reference" />
     76     <!-- Deprecated. Use suwDividerInsetStart and suwDividerInsetEnd instead -->
     77     <attr name="suwDividerInset" format="dimension|reference" />
     78     <attr name="suwDividerInsetEnd" format="dimension|reference" />
     79     <attr name="suwDividerInsetStart" format="dimension|reference" />
     80     <attr name="suwDividerInsetStartNoIcon" format="dimension|reference" />
     81     <attr name="suwItemDescriptionStyle" format="reference" />
     82     <attr name="suwItemDescriptionTitleStyle" format="reference" />
     83 
     84     <declare-styleable name="SuwIllustration">
     85         <attr name="suwAspectRatio" format="float" />
     86     </declare-styleable>
     87 
     88     <declare-styleable name="SuwStickyHeaderListView">
     89         <attr name="suwHeader" />
     90     </declare-styleable>
     91 
     92     <declare-styleable name="SuwHeaderRecyclerView">
     93         <attr name="suwHeader" />
     94     </declare-styleable>
     95 
     96     <declare-styleable name="SuwIllustrationVideoView">
     97         <attr name="suwVideo" format="reference" />
     98     </declare-styleable>
     99 
    100     <declare-styleable name="SuwGlifLayout">
    101         <attr name="suwBackgroundPatterned" format="boolean" />
    102         <attr name="suwBackgroundBaseColor" format="color" />
    103         <attr name="suwColorPrimary" />
    104         <attr name="suwFooter" format="reference" />
    105     </declare-styleable>
    106 
    107     <declare-styleable name="SuwStatusBarBackgroundLayout">
    108         <attr name="suwStatusBarBackground" format="color|reference" />
    109     </declare-styleable>
    110 
    111     <declare-styleable name="SuwIntrinsicSizeFrameLayout">
    112         <attr name="android:height" />
    113         <attr name="android:width" />
    114     </declare-styleable>
    115 
    116     <declare-styleable name="SuwFillContentLayout">
    117         <attr name="android:maxHeight" />
    118         <attr name="android:maxWidth" />
    119     </declare-styleable>
    120 
    121     <declare-styleable name="SuwSetupWizardLayout">
    122         <attr name="suwBackground" format="color|reference" />
    123         <attr name="suwBackgroundTile" format="color|reference" />
    124         <attr name="suwDecorPaddingTop" format="dimension|reference" />
    125         <attr name="suwIllustration" format="color|reference" />
    126         <attr name="suwIllustrationAspectRatio" format="float|reference" />
    127         <attr name="suwIllustrationHorizontalTile" format="color|reference" />
    128         <attr name="suwIllustrationImage" format="color|reference" />
    129     </declare-styleable>
    130 
    131     <declare-styleable name="SuwTemplateLayout">
    132         <attr name="android:layout" />
    133         <attr name="suwContainer" format="reference" />
    134     </declare-styleable>
    135 
    136     <declare-styleable name="SuwAbstractItem">
    137         <attr name="android:id" />
    138     </declare-styleable>
    139 
    140     <declare-styleable name="SuwItem">
    141         <attr name="android:enabled" />
    142         <attr name="android:icon" />
    143         <attr name="android:layout" />
    144         <attr name="android:summary" />
    145         <attr name="android:title" />
    146         <attr name="android:visible" />
    147     </declare-styleable>
    148 
    149     <declare-styleable name="SuwDividerItemDecoration">
    150         <attr name="android:listDivider" />
    151         <attr name="android:dividerHeight" />
    152         <attr name="suwDividerCondition" />
    153     </declare-styleable>
    154 
    155     <declare-styleable name="SuwButtonItem">
    156         <attr name="android:buttonStyle" />
    157         <attr name="android:enabled" />
    158         <attr name="android:text" />
    159         <attr name="android:theme" />
    160     </declare-styleable>
    161 
    162     <declare-styleable name="SuwHeaderMixin">
    163         <attr name="suwHeaderText" format="string" localization="suggested" />
    164     </declare-styleable>
    165 
    166     <declare-styleable name="SuwColoredHeaderMixin">
    167         <attr name="suwHeaderColor" format="reference|color" />
    168     </declare-styleable>
    169 
    170     <declare-styleable name="SuwIconMixin">
    171         <attr name="android:icon" />
    172     </declare-styleable>
    173 
    174     <declare-styleable name="SuwListMixin">
    175         <attr name="android:entries" />
    176         <attr name="suwDividerInset" />
    177         <attr name="suwDividerInsetEnd" />
    178         <attr name="suwDividerInsetStart" />
    179     </declare-styleable>
    180 
    181 </resources>
    182