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