• 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    <declare-styleable name="SudIllustration">
161        <attr name="sudAspectRatio" format="float" />
162    </declare-styleable>
163
164    <declare-styleable name="SudStickyHeaderListView">
165        <attr name="sudHeader" />
166    </declare-styleable>
167
168    <declare-styleable name="SudHeaderRecyclerView">
169        <attr name="sudHeader" />
170    </declare-styleable>
171
172    <declare-styleable name="SudIllustrationVideoView">
173        <attr name="sudVideo" format="reference" />
174        <attr name="sudPauseVideoWhenFinished" format="boolean" />
175    </declare-styleable>
176
177    <declare-styleable name="SudGlifLayout">
178        <attr name="sudBackgroundPatterned" format="boolean" />
179        <attr name="sudBackgroundBaseColor" format="color" />
180        <attr name="sudColorPrimary" />
181        <attr name="sudStickyHeader" format="reference" />
182        <!-- This attribute is false by default. When set to true, the layout will apply partner
183             customizations to Header, Icon and Description. This attribute will be ignored when
184             GlifLayout.shouldApplyPartnerResource() returns false.  -->
185        <attr name="sudUsePartnerHeavyTheme" format="boolean" />
186    </declare-styleable>
187
188    <declare-styleable name="SudIntrinsicSizeFrameLayout">
189        <attr name="android:height" />
190        <attr name="android:width" />
191    </declare-styleable>
192
193    <attr name="sudContentIllustrationMaxWidth" format="dimension" />
194    <attr name="sudContentIllustrationMaxHeight" format="dimension" />
195    <attr name="sudContentIllustrationPaddingTop" format="dimension" />
196    <attr name="sudContentIllustrationPaddingBottom" format="dimension" />
197    <declare-styleable name="SudFillContentLayout">
198        <attr name="android:maxHeight" />
199        <attr name="android:maxWidth" />
200    </declare-styleable>
201
202    <declare-styleable name="SudSetupWizardLayout">
203        <attr name="sudBackground" format="color|reference" />
204        <attr name="sudBackgroundTile" format="color|reference" />
205        <attr name="sudDecorPaddingTop" format="dimension|reference" />
206        <attr name="sudIllustration" format="color|reference" />
207        <attr name="sudIllustrationAspectRatio" format="float|reference" />
208        <attr name="sudIllustrationHorizontalTile" format="color|reference" />
209        <attr name="sudIllustrationImage" format="color|reference" />
210    </declare-styleable>
211
212    <declare-styleable name="SudTemplateLayout">
213        <attr name="android:layout" />
214        <attr name="sudContainer" format="reference" />
215    </declare-styleable>
216
217    <declare-styleable name="SudAbstractItem">
218        <attr name="android:id" />
219    </declare-styleable>
220
221    <declare-styleable name="SudItem">
222        <attr name="android:enabled" />
223        <attr name="android:icon" />
224        <attr name="android:layout" />
225        <attr name="android:summary" />
226        <attr name="android:title" />
227        <attr name="android:visible" />
228        <attr name="android:contentDescription" />
229        <attr name="sudIconTint" />
230        <attr name="sudIconGravity" />
231    </declare-styleable>
232
233    <declare-styleable name="SudDividerItemDecoration">
234        <attr name="android:listDivider" />
235        <attr name="android:dividerHeight" />
236        <attr name="sudDividerCondition" />
237    </declare-styleable>
238
239    <declare-styleable name="SudButtonItem">
240        <attr name="android:buttonStyle" />
241        <attr name="android:enabled" />
242        <attr name="android:text" />
243        <attr name="android:theme" />
244    </declare-styleable>
245
246    <declare-styleable name="SudIconMixin">
247        <attr name="android:icon" />
248        <attr name="sudUpscaleIcon" format="boolean" />
249        <attr name="sudIconTint" />
250    </declare-styleable>
251
252    <declare-styleable name="SudListMixin">
253        <attr name="android:entries" />
254        <attr name="sudDividerInset" />
255        <attr name="sudDividerInsetEnd" />
256        <attr name="sudDividerInsetStart" />
257        <attr name="sudDividerShown" />
258    </declare-styleable>
259
260    <declare-styleable name="SudRecyclerItemAdapter">
261        <attr name="android:colorBackground" />
262        <attr name="android:selectableItemBackground" />
263        <attr name="selectableItemBackground" />
264    </declare-styleable>
265
266    <declare-styleable name="SudRecyclerMixin">
267        <attr name="android:entries" />
268        <attr name="sudDividerInset" />
269        <attr name="sudDividerInsetEnd" />
270        <attr name="sudDividerInsetStart" />
271        <attr name="sudHasStableIds" />
272    </declare-styleable>
273
274    <declare-styleable name="SudSwitchItem">
275        <attr name="android:checked" />
276    </declare-styleable>
277
278    <declare-styleable name="SudExpandableSwitchItem">
279        <attr name="sudCollapsedSummary" format="string" localization="suggested" />
280        <attr name="sudExpandedSummary" format="string" localization="suggested" />
281    </declare-styleable>
282
283    <declare-styleable name="SudDescriptionMixin">
284        <attr name="sudDescriptionText" format="string" localization="suggested" />
285        <attr name="sudDescriptionTextColor" format="reference|color" />
286        <attr name="sudGlifDescriptionMarginTop" format="dimension" />
287        <attr name="sudGlifDescriptionMarginBottom" format="dimension" />
288    </declare-styleable>
289
290    <declare-styleable name="SudProgressBarMixin">
291        <attr name="sudUseBottomProgressBar" format="boolean" />
292    </declare-styleable>
293
294    <declare-styleable name="SudGlifLoadingFramePadding">
295        <attr name="sudLoadingContentFramePaddingTop" format="dimension|reference" />
296        <attr name="sudLoadingContentFramePaddingStart" format="dimension|reference" />
297        <attr name="sudLoadingContentFramePaddingEnd" format="dimension|reference" />
298        <attr name="sudLoadingContentFramePaddingBottom" format="dimension|reference" />
299    </declare-styleable>
300
301    <attr name="sudLoadingHeaderHeight" format="dimension|reference" />
302
303    <!-- Glif Switch Bar style -->
304    <attr name="sudSwitchBarThumbOnColor" format="color|reference" />
305    <attr name="sudSwitchBarThumbOffColor" format="color|reference" />
306    <attr name="sudSwitchBarTrackOnColor" format="color|reference" />
307    <attr name="sudSwitchBarTrackOffColor" format="color|reference" />
308</resources>
309