• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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="suwDividerCondition">
43        <enum name="either" value="0" />
44        <enum name="both" value="1" />
45    </attr>
46    <attr name="suwListItemIconColor" format="color" />
47    <attr name="suwNavBarBackgroundColor" format="color" />
48    <attr name="suwNavBarButtonBackground" format="color|reference" />
49    <attr name="suwNavBarTextColor" format="color" />
50    <attr name="suwNavBarTheme" format="reference" />
51
52    <!-- Values copied from frameworks/base/core/res/res/values/attrs.xml -->
53    <attr name="suwScrollIndicators">
54        <!-- No scroll indicators are displayed. -->
55        <flag name="none" value="0x00" />
56        <!-- Displays top scroll indicator when view can be scrolled up. -->
57        <flag name="top" value="0x01" />
58        <!-- Displays bottom scroll indicator when vew can be scrolled down. -->
59        <flag name="bottom" value="0x02" />
60        <!-- Displays left scroll indicator when vew can be scrolled left. -->
61        <flag name="left" value="0x04" />
62        <!-- Displays right scroll indicator when vew can be scrolled right. -->
63        <flag name="right" value="0x08" />
64        <!-- Displays right scroll indicator when vew can be scrolled in the
65             start direction. -->
66        <flag name="start" value="0x10" />
67        <!-- Displays right scroll indicator when vew can be scrolled in the
68             end direction. -->
69        <flag name="end" value="0x20" />
70    </attr>
71
72    <!-- Custom view attributes -->
73    <attr name="suwColorPrimary" format="color" />
74    <attr name="suwHeader" format="reference" />
75    <attr name="suwDividerInset" format="dimension|reference" />
76    <attr name="suwItemDescriptionStyle" format="reference" />
77
78    <declare-styleable name="SuwIllustration">
79        <attr name="suwAspectRatio" format="float" />
80    </declare-styleable>
81
82    <declare-styleable name="SuwStickyHeaderListView">
83        <attr name="suwHeader" />
84    </declare-styleable>
85
86    <declare-styleable name="SuwHeaderRecyclerView">
87        <attr name="suwHeader" />
88    </declare-styleable>
89
90    <declare-styleable name="SuwGlifLayout">
91        <attr name="suwBackgroundPatterned" format="boolean" />
92        <attr name="suwBackgroundBaseColor" format="color" />
93        <attr name="suwColorPrimary" />
94        <attr name="suwFooter" format="reference" />
95    </declare-styleable>
96
97    <declare-styleable name="SuwStatusBarBackgroundLayout">
98        <attr name="suwStatusBarBackground" format="color|reference" />
99    </declare-styleable>
100
101    <declare-styleable name="SuwMaxSizeFrameLayout">
102        <attr name="android:height" />
103        <attr name="android:width" />
104    </declare-styleable>
105
106    <declare-styleable name="SuwSetupWizardLayout">
107        <attr name="suwBackground" format="color|reference" />
108        <attr name="suwBackgroundTile" format="color|reference" />
109        <attr name="suwDecorPaddingTop" format="dimension|reference" />
110        <attr name="suwIllustration" format="color|reference" />
111        <attr name="suwIllustrationAspectRatio" format="float|reference" />
112        <attr name="suwIllustrationHorizontalTile" format="color|reference" />
113        <attr name="suwIllustrationImage" format="color|reference" />
114    </declare-styleable>
115
116    <declare-styleable name="SuwTemplateLayout">
117        <attr name="android:layout" />
118        <attr name="suwContainer" format="reference" />
119    </declare-styleable>
120
121    <declare-styleable name="SuwAbstractItem">
122        <attr name="android:id" />
123    </declare-styleable>
124
125    <declare-styleable name="SuwItem">
126        <attr name="android:enabled" />
127        <attr name="android:icon" />
128        <attr name="android:layout" />
129        <attr name="android:summary" />
130        <attr name="android:title" />
131        <attr name="android:visible" />
132    </declare-styleable>
133
134    <declare-styleable name="SuwDividerItemDecoration">
135        <attr name="android:listDivider" />
136        <attr name="android:dividerHeight" />
137        <attr name="suwDividerCondition" />
138    </declare-styleable>
139
140    <declare-styleable name="SuwButtonItem">
141        <attr name="android:buttonStyle" />
142        <attr name="android:enabled" />
143        <attr name="android:text" />
144        <attr name="android:theme" />
145    </declare-styleable>
146
147    <declare-styleable name="SuwHeaderMixin">
148        <attr name="suwHeaderText" format="string" localization="suggested" />
149    </declare-styleable>
150
151    <declare-styleable name="SuwColoredHeaderMixin">
152        <attr name="suwHeaderColor" format="reference|color" />
153    </declare-styleable>
154
155    <declare-styleable name="SuwIconMixin">
156        <attr name="android:icon" />
157    </declare-styleable>
158
159    <declare-styleable name="SuwListMixin">
160        <attr name="android:entries" />
161        <attr name="suwDividerInset" />
162    </declare-styleable>
163
164</resources>
165