• 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    <attr name="suwEditTextBackgroundColor" format="color" />
24
25    <!-- Subset of values in "gravity" in frameworks/base/core/res/res/values/attrs.xml. Only
26         horizontal values are listed here as the header does not support vertical gravity. -->
27    <attr name="suwGlifHeaderGravity">
28        <!-- Push object to the left of its container, not changing its size. -->
29        <flag name="left" value="0x03" />
30        <!-- Push object to the right of its container, not changing its size. -->
31        <flag name="right" value="0x05" />
32        <!-- Place object in the horizontal center of its container, not changing its size. -->
33        <flag name="center_horizontal" value="0x01" />
34        <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
35        <flag name="fill_horizontal" value="0x07" />
36        <!-- Push object to the beginning of its container, not changing its size. -->
37        <flag name="start" value="0x00800003" />
38        <!-- Push object to the end of its container, not changing its size. -->
39        <flag name="end" value="0x00800005" />
40    </attr>
41    <attr name="suwGlifIconStyle" format="reference" />
42
43    <attr name="suwButtonAllCaps" format="boolean" />
44    <attr name="suwButtonCornerRadius" format="dimension" />
45    <attr name="suwButtonFontFamily" format="string|reference" />
46    <attr name="suwCardBackground" format="color|reference" />
47    <attr name="suwDividerCondition">
48        <enum name="either" value="0" />
49        <enum name="both" value="1" />
50    </attr>
51    <attr name="suwFillContentLayoutStyle" format="reference" />
52    <attr name="suwListItemIconColor" format="color" />
53    <attr name="suwNavBarBackgroundColor" format="color" />
54    <attr name="suwNavBarButtonBackground" format="color|reference" />
55    <attr name="suwNavBarTextColor" format="color" />
56    <attr name="suwNavBarTheme" format="reference" />
57
58    <!-- Values copied from frameworks/base/core/res/res/values/attrs.xml -->
59    <attr name="suwScrollIndicators">
60        <!-- No scroll indicators are displayed. -->
61        <flag name="none" value="0x00" />
62        <!-- Displays top scroll indicator when view can be scrolled up. -->
63        <flag name="top" value="0x01" />
64        <!-- Displays bottom scroll indicator when vew can be scrolled down. -->
65        <flag name="bottom" value="0x02" />
66        <!-- Displays left scroll indicator when vew can be scrolled left. -->
67        <flag name="left" value="0x04" />
68        <!-- Displays right scroll indicator when vew can be scrolled right. -->
69        <flag name="right" value="0x08" />
70        <!-- Displays right scroll indicator when vew can be scrolled in the
71             start direction. -->
72        <flag name="start" value="0x10" />
73        <!-- Displays right scroll indicator when vew can be scrolled in the
74             end direction. -->
75        <flag name="end" value="0x20" />
76    </attr>
77
78    <!-- Custom view attributes -->
79    <attr name="suwColorPrimary" format="color" />
80    <attr name="suwHeader" format="reference" />
81    <!-- Deprecated. Use suwDividerInsetStart and suwDividerInsetEnd instead -->
82    <attr name="suwDividerInset" format="dimension|reference" />
83    <attr name="suwDividerInsetEnd" format="dimension|reference" />
84    <attr name="suwDividerInsetStart" format="dimension|reference" />
85    <attr name="suwDividerInsetStartNoIcon" format="dimension|reference" />
86    <attr name="suwItemDescriptionStyle" format="reference" />
87    <attr name="suwItemDescriptionTitleStyle" format="reference" />
88
89    <declare-styleable name="SuwIllustration">
90        <attr name="suwAspectRatio" format="float" />
91    </declare-styleable>
92
93    <declare-styleable name="SuwStickyHeaderListView">
94        <attr name="suwHeader" />
95    </declare-styleable>
96
97    <declare-styleable name="SuwHeaderRecyclerView">
98        <attr name="suwHeader" />
99    </declare-styleable>
100
101    <declare-styleable name="SuwIllustrationVideoView">
102        <attr name="suwVideo" format="reference" />
103    </declare-styleable>
104
105    <declare-styleable name="SuwGlifLayout">
106        <attr name="suwBackgroundPatterned" format="boolean" />
107        <attr name="suwBackgroundBaseColor" format="color" />
108        <attr name="suwColorPrimary" />
109        <attr name="suwFooter" format="reference" />
110        <attr name="suwLayoutFullscreen" format="boolean" />
111        <attr name="suwStickyHeader" format="reference" />
112    </declare-styleable>
113
114    <declare-styleable name="SuwStatusBarBackgroundLayout">
115        <attr name="suwStatusBarBackground" format="color|reference" />
116    </declare-styleable>
117
118    <declare-styleable name="SuwIntrinsicSizeFrameLayout">
119        <attr name="android:height" />
120        <attr name="android:width" />
121    </declare-styleable>
122
123    <declare-styleable name="SuwFillContentLayout">
124        <attr name="android:maxHeight" />
125        <attr name="android:maxWidth" />
126    </declare-styleable>
127
128    <declare-styleable name="SuwSetupWizardLayout">
129        <attr name="suwBackground" format="color|reference" />
130        <attr name="suwBackgroundTile" format="color|reference" />
131        <attr name="suwDecorPaddingTop" format="dimension|reference" />
132        <attr name="suwIllustration" format="color|reference" />
133        <attr name="suwIllustrationAspectRatio" format="float|reference" />
134        <attr name="suwIllustrationHorizontalTile" format="color|reference" />
135        <attr name="suwIllustrationImage" format="color|reference" />
136    </declare-styleable>
137
138    <declare-styleable name="SuwTemplateLayout">
139        <attr name="android:layout" />
140        <attr name="suwContainer" format="reference" />
141    </declare-styleable>
142
143    <declare-styleable name="SuwAbstractItem">
144        <attr name="android:id" />
145    </declare-styleable>
146
147    <declare-styleable name="SuwItem">
148        <attr name="android:enabled" />
149        <attr name="android:icon" />
150        <attr name="android:layout" />
151        <attr name="android:summary" />
152        <attr name="android:title" />
153        <attr name="android:visible" />
154    </declare-styleable>
155
156    <declare-styleable name="SuwDividerItemDecoration">
157        <attr name="android:listDivider" />
158        <attr name="android:dividerHeight" />
159        <attr name="suwDividerCondition" />
160    </declare-styleable>
161
162    <declare-styleable name="SuwButtonItem">
163        <attr name="android:buttonStyle" />
164        <attr name="android:enabled" />
165        <attr name="android:text" />
166        <attr name="android:theme" />
167    </declare-styleable>
168
169    <declare-styleable name="SuwHeaderMixin">
170        <attr name="suwHeaderText" format="string" localization="suggested" />
171    </declare-styleable>
172
173    <declare-styleable name="SuwColoredHeaderMixin">
174        <attr name="suwHeaderColor" format="reference|color" />
175    </declare-styleable>
176
177    <declare-styleable name="SuwIconMixin">
178        <attr name="android:icon" />
179    </declare-styleable>
180
181    <declare-styleable name="SuwListMixin">
182        <attr name="android:entries" />
183        <attr name="suwDividerInset" />
184        <attr name="suwDividerInsetEnd" />
185        <attr name="suwDividerInsetStart" />
186    </declare-styleable>
187
188</resources>
189