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