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="sudLayoutTheme" format="reference" />
22    <attr name="sudMarginSides" format="dimension|reference" />
23    <attr name="sudEditTextBackgroundColor" format="color" />
24    <attr name="sudButtonHighlightAlpha" format="float" />
25
26    <!-- Subset of values in "gravity" in frameworks/base/core/res/res/values/attrs.xml. Only
27         horizontal values are listed here as the header does not support vertical gravity. -->
28    <attr name="sudGlifHeaderGravity">
29        <!-- Push object to the left of its container, not changing its size. -->
30        <flag name="left" value="0x03" />
31        <!-- Push object to the right of its container, not changing its size. -->
32        <flag name="right" value="0x05" />
33        <!-- Place object in the horizontal center of its container, not changing its size. -->
34        <flag name="center_horizontal" value="0x01" />
35        <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
36        <flag name="fill_horizontal" value="0x07" />
37        <!-- Push object to the beginning of its container, not changing its size. -->
38        <flag name="start" value="0x00800003" />
39        <!-- Push object to the end of its container, not changing its size. -->
40        <flag name="end" value="0x00800005" />
41    </attr>
42    <attr name="sudGlifIconStyle" format="reference" />
43
44    <attr name="sudButtonAllCaps" format="boolean" />
45    <attr name="sudButtonCornerRadius" format="dimension" />
46    <attr name="sudButtonFontFamily" format="string|reference" />
47    <attr name="sudCardBackground" format="color|reference" />
48    <attr name="sudDividerCondition">
49        <enum name="either" value="0" />
50        <enum name="both" value="1" />
51    </attr>
52    <attr name="sudFillContentLayoutStyle" format="reference" />
53    <attr name="sudListItemIconColor" format="color" />
54    <attr name="sudNavBarBackgroundColor" format="color" />
55    <attr name="sudNavBarButtonBackground" format="color|reference" />
56    <attr name="sudNavBarTextColor" format="color" />
57    <attr name="sudNavBarTheme" format="reference" />
58    <attr name="sudIconTint" format="color" />
59    <attr name="sudIconGravity">
60        <!-- Values in the enum has to be the same as in android.view.Gravity -->
61        <enum name="top" value="0x30" />
62        <enum name="center_vertical" value="0x10" />
63        <enum name="bottom" value="0x50" />
64    </attr>
65
66    <!-- Values copied from frameworks/base/core/res/res/values/attrs.xml -->
67    <attr name="sudScrollIndicators">
68        <!-- No scroll indicators are displayed. -->
69        <flag name="none" value="0x00" />
70        <!-- Displays top scroll indicator when view can be scrolled up. -->
71        <flag name="top" value="0x01" />
72        <!-- Displays bottom scroll indicator when vew can be scrolled down. -->
73        <flag name="bottom" value="0x02" />
74        <!-- Displays left scroll indicator when vew can be scrolled left. -->
75        <flag name="left" value="0x04" />
76        <!-- Displays right scroll indicator when vew can be scrolled right. -->
77        <flag name="right" value="0x08" />
78        <!-- Displays right scroll indicator when vew can be scrolled in the
79             start direction. -->
80        <flag name="start" value="0x10" />
81        <!-- Displays right scroll indicator when vew can be scrolled in the
82             end direction. -->
83        <flag name="end" value="0x20" />
84    </attr>
85
86    <!-- Custom view attributes -->
87    <attr name="sudColorPrimary" format="color" />
88    <attr name="sudHeader" format="reference" />
89    <!-- Deprecated. Use sudDividerInsetStart and sudDividerInsetEnd instead -->
90    <attr name="sudDividerInset" format="dimension|reference" />
91    <attr name="sudDividerInsetEnd" format="dimension|reference" />
92    <attr name="sudDividerInsetStart" format="dimension|reference" />
93    <attr name="sudDividerInsetStartNoIcon" format="dimension|reference" />
94    <attr name="sudItemDescriptionStyle" format="reference" />
95    <attr name="sudItemDescriptionTitleStyle" format="reference" />
96
97    <attr name="sudHasStableIds" format="boolean|reference" />
98
99    <declare-styleable name="SudIllustration">
100        <attr name="sudAspectRatio" format="float" />
101    </declare-styleable>
102
103    <declare-styleable name="SudStickyHeaderListView">
104        <attr name="sudHeader" />
105    </declare-styleable>
106
107    <declare-styleable name="SudHeaderRecyclerView">
108        <attr name="sudHeader" />
109    </declare-styleable>
110
111    <declare-styleable name="SudIllustrationVideoView">
112        <attr name="sudVideo" format="reference" />
113    </declare-styleable>
114
115    <declare-styleable name="SudGlifLayout">
116        <attr name="sudBackgroundPatterned" format="boolean" />
117        <attr name="sudBackgroundBaseColor" format="color" />
118        <attr name="sudColorPrimary" />
119        <attr name="sudStickyHeader" format="reference" />
120        <!-- This attribute is false by default. When set to true, the layout will apply partner
121             customizations to Header, Icon and Description. This attribute will be ignored when
122             GlifLayout.shouldApplyPartnerResource() returns false.  -->
123        <attr name="sudUsePartnerHeavyTheme" format="boolean" />
124    </declare-styleable>
125
126    <declare-styleable name="SudIntrinsicSizeFrameLayout">
127        <attr name="android:height" />
128        <attr name="android:width" />
129    </declare-styleable>
130
131    <declare-styleable name="SudFillContentLayout">
132        <attr name="android:maxHeight" />
133        <attr name="android:maxWidth" />
134    </declare-styleable>
135
136    <declare-styleable name="SudSetupWizardLayout">
137        <attr name="sudBackground" format="color|reference" />
138        <attr name="sudBackgroundTile" format="color|reference" />
139        <attr name="sudDecorPaddingTop" format="dimension|reference" />
140        <attr name="sudIllustration" format="color|reference" />
141        <attr name="sudIllustrationAspectRatio" format="float|reference" />
142        <attr name="sudIllustrationHorizontalTile" format="color|reference" />
143        <attr name="sudIllustrationImage" format="color|reference" />
144    </declare-styleable>
145
146    <declare-styleable name="SudTemplateLayout">
147        <attr name="android:layout" />
148        <attr name="sudContainer" format="reference" />
149    </declare-styleable>
150
151    <declare-styleable name="SudAbstractItem">
152        <attr name="android:id" />
153    </declare-styleable>
154
155    <declare-styleable name="SudItem">
156        <attr name="android:enabled" />
157        <attr name="android:icon" />
158        <attr name="android:layout" />
159        <attr name="android:summary" />
160        <attr name="android:title" />
161        <attr name="android:visible" />
162        <attr name="sudIconTint" />
163        <attr name="sudIconGravity" />
164    </declare-styleable>
165
166    <declare-styleable name="SudDividerItemDecoration">
167        <attr name="android:listDivider" />
168        <attr name="android:dividerHeight" />
169        <attr name="sudDividerCondition" />
170    </declare-styleable>
171
172    <declare-styleable name="SudButtonItem">
173        <attr name="android:buttonStyle" />
174        <attr name="android:enabled" />
175        <attr name="android:text" />
176        <attr name="android:theme" />
177    </declare-styleable>
178
179    <declare-styleable name="SudIconMixin">
180        <attr name="android:icon" />
181        <attr name="sudUpscaleIcon" format="boolean" />
182        <attr name="sudIconTint" />
183    </declare-styleable>
184
185    <declare-styleable name="SudListMixin">
186        <attr name="android:entries" />
187        <attr name="sudDividerInset" />
188        <attr name="sudDividerInsetEnd" />
189        <attr name="sudDividerInsetStart" />
190    </declare-styleable>
191
192    <declare-styleable name="SudRecyclerItemAdapter">
193        <attr name="android:colorBackground" />
194        <attr name="android:selectableItemBackground" />
195        <attr name="selectableItemBackground" />
196    </declare-styleable>
197
198    <declare-styleable name="SudRecyclerMixin">
199        <attr name="android:entries" />
200        <attr name="sudDividerInset" />
201        <attr name="sudDividerInsetEnd" />
202        <attr name="sudDividerInsetStart" />
203        <attr name="sudHasStableIds" />
204    </declare-styleable>
205
206    <declare-styleable name="SudSwitchItem">
207        <attr name="android:checked" />
208    </declare-styleable>
209
210    <declare-styleable name="SudExpandableSwitchItem">
211        <attr name="sudCollapsedSummary" format="string" localization="suggested" />
212        <attr name="sudExpandedSummary" format="string" localization="suggested" />
213    </declare-styleable>
214</resources>
215