/
attrs.xml
315 lines (287 loc) · 16.7 KB
/
attrs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2015 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<resources>
<!-- Style to use for AppBarLayouts in this theme. -->
<attr name="appBarLayoutStyle" format="reference"/>
<!-- Style to use for CollapsingToolbarLayouts in this theme. -->
<attr name="collapsingToolbarLayoutStyle" format="reference"/>
<!-- Style to use for Medium CollapsingToolbarLayouts in this theme. -->
<attr name="collapsingToolbarLayoutMediumStyle" format="reference"/>
<!-- Style to use for Large CollapsingToolbarLayouts in this theme. -->
<attr name="collapsingToolbarLayoutLargeStyle" format="reference"/>
<!-- Size to use for Medium CollapsingToolbarLayouts in this theme. -->
<attr name="collapsingToolbarLayoutMediumSize" format="reference"/>
<!-- Size to use for Large CollapsingToolbarLayouts in this theme. -->
<attr name="collapsingToolbarLayoutLargeSize" format="reference"/>
<!-- Style to use for Surface Toolbars in this theme. -->
<attr name="toolbarSurfaceStyle" format="reference"/>
<declare-styleable name="AppBarLayout">
<!-- Deprecated. Elevation is now controlled via a state list animator. -->
<attr name="elevation"/>
<attr name="android:background"/>
<!-- The initial expanded state for the AppBarLayout. This only takes effect when this
view is a direct child of a CoordinatorLayout. -->
<attr name="expanded" format="boolean"/>
<attr name="android:keyboardNavigationCluster"/>
<attr name="android:touchscreenBlocksFocus"/>
<!-- Whether the {@link AppBarLayout} should lift on scroll. If set to
true, the {@link AppBarLayout} will animate to the lifted, or
elevated, state when content is scrolled beneath it. Requires
`app:layout_behavior="@string/appbar_scrolling_view_behavior` to be
set on the scrolling sibling (e.g., `NestedScrollView`,
`RecyclerView`, etc.). Default is false. -->
<attr name="liftOnScroll" format="boolean"/>
<!-- The id of the view that the {@link AppBarLayout} should use to determine whether
it should be lifted (i.e., only if {@code liftOnScroll} is set to true).
If this id is not set, the {@link AppBarLayout} will use the target view provided
by nested scrolling to determine whether it should be lifted. -->
<attr name="liftOnScrollTargetViewId" format="reference"/>
<!-- The drawable to display in front of the layout's content, but behind the status bar.
Only works on Lollipop when used together with android:fitSystemWindows="true". -->
<attr name="statusBarForeground" format="color"/>
</declare-styleable>
<declare-styleable name="AppBarLayoutStates">
<!-- @deprecated in favor of {@code state_lifted}. -->
<attr name="state_collapsed" format="boolean"/>
<!-- @deprecated in favor of {@code state_liftable}. -->
<attr name="state_collapsible" format="boolean"/>
<!-- State value for {@link com.google.android.material.appbar.AppBarLayout} set when the view
is lifted (elevated). -->
<attr name="state_lifted" format="boolean"/>
<!-- State value for {@link com.google.android.material.appbar.AppBarLayout} set when the view
is liftable (e.g., elevates on collapse or scroll). -->
<attr name="state_liftable" format="boolean"/>
</declare-styleable>
<declare-styleable name="AppBarLayout_Layout">
<attr name="layout_scrollFlags">
<!-- Disable scrolling on the view. This flag should not be combined with any of the other
scroll flags. -->
<flag name="noScroll" value="0x0"/>
<!-- The view will be scroll in direct relation to scroll events. This flag needs to be
set for any of the other flags to take effect. If any sibling views
before this one do not have this flag, then this value has no effect. -->
<flag name="scroll" value="0x1"/>
<!-- When exiting (scrolling off screen) the view will be scrolled until it is
'collapsed'. The collapsed height is defined by the view's minimum height. -->
<flag name="exitUntilCollapsed" value="0x2"/>
<!-- When entering (scrolling on screen) the view will scroll on any downwards
scroll event, regardless of whether the scrolling view is also scrolling. This
is commonly referred to as the 'quick return' pattern. -->
<flag name="enterAlways" value="0x4"/>
<!-- An additional flag for 'enterAlways' which modifies the returning view to
only initially scroll back to it's collapsed height. Once the scrolling view has
reached the end of it's scroll range, the remainder of this view will be scrolled
into view. -->
<flag name="enterAlwaysCollapsed" value="0x8"/>
<!-- Upon a scroll ending, if the view is only partially visible then it will be
snapped and scrolled to it's closest edge. -->
<flag name="snap" value="0x10"/>
<!-- An additional flag to be used with 'snap'. If set, the view will be snapped to its
top and bottom margins, as opposed to the edges of the view itself. -->
<flag name="snapMargins" value="0x20"/>
</attr>
<attr name="layout_scrollEffect" format="enum">
<!-- No effect will be applied to this child when its parent
AppBarLayout's offset changes.-->
<enum name="none" value="0"/>
<!-- This view will be compressed (masked and parallaxed) when it reaches
the top of the screen and continues to scroll out of view.-->
<enum name="compress" value="1"/>
</attr>
<!-- An interpolator to use when scrolling this View. Only takes effect when View
is scrollable. -->
<attr name="layout_scrollInterpolator" format="reference"/>
</declare-styleable>
<declare-styleable name="ScrollingViewBehavior_Layout">
<!-- The amount that the scrolling view should overlap the bottom of any AppBarLayout -->
<attr name="behavior_overlapTop" format="dimension"/>
</declare-styleable>
<declare-styleable name="CollapsingToolbarLayout">
<!-- Specifies extra space on the start, top, end and bottom
sides of the the expanded title text. Margin values should be positive. -->
<attr name="expandedTitleMargin" format="dimension"/>
<!-- Specifies extra space on the start side of the the expanded title text.
Margin values should be positive. -->
<attr name="expandedTitleMarginStart" format="dimension"/>
<!-- Specifies extra space on the top side of the the expanded title text.
Margin values should be positive. -->
<attr name="expandedTitleMarginTop" format="dimension"/>
<!-- Specifies extra space on the end side of the the expanded title text.
Margin values should be positive. -->
<attr name="expandedTitleMarginEnd" format="dimension"/>
<!-- Specifies extra space on the bottom side of the the expanded title text.
Margin values should be positive. -->
<attr name="expandedTitleMarginBottom" format="dimension"/>
<!-- The text appearance of the CollapsingToolbarLayout's title when it is fully
'expanded' -->
<attr name="expandedTitleTextAppearance" format="reference"/>
<!-- The text appearance of the CollapsingToolbarLayouts title when it is fully
'collapsed' -->
<attr name="collapsedTitleTextAppearance" format="reference"/>
<!-- The text ellipsize of the collapsedToolbarLayout title -->
<attr name="titleTextEllipsize" format="enum">
<enum name="start" value="0" />
<enum name="middle" value="1" />
<enum name="end" value="2" />
<enum name="marquee" value="3" />
</attr>
<!-- The text color of the CollapsingToolbarLayout's title when it is fully
'expanded' -->
<attr name="expandedTitleTextColor" format="color|reference"/>
<!-- The text color of the CollapsingToolbarLayouts title when it is fully
'collapsed' -->
<attr name="collapsedTitleTextColor" format="color|reference"/>
<!-- The drawable to use as a scrim on top of the CollapsingToolbarLayouts content when
it has been scrolled sufficiently off screen. -->
<attr name="contentScrim" format="color"/>
<!-- The drawable to use as a scrim for the status bar content when the
CollapsingToolbarLayout has been scrolled sufficiently off screen. Only works on
Lollipop when used together with android:fitSystemWindows="true". -->
<attr name="statusBarScrim" format="color"/>
<!-- The id of the primary Toolbar child that you wish to use for the purpose of collapsing.
This Toolbar descendant view does not need to be a direct child of the layout.
If you do not set this, the first direct Toolbar child found will be used. -->
<attr name="toolbarId" format="reference"/>
<!-- Specifies the amount of visible height in pixels used to define when to trigger a
scrim visibility change. -->
<attr name="scrimVisibleHeightTrigger" format="dimension"/>
<!-- Specifies the duration used for scrim visibility animations. -->
<attr name="scrimAnimationDuration" format="integer"/>
<!-- Specifies how the title should be positioned when collapsed. -->
<attr name="collapsedTitleGravity">
<!-- Push title to the top of its container, not changing its size. -->
<flag name="top" value="0x30"/>
<!-- Push title to the bottom of its container, not changing its size. -->
<flag name="bottom" value="0x50"/>
<!-- Push title to the left of its container, not changing its size. -->
<flag name="left" value="0x03"/>
<!-- Push title to the right of its container, not changing its size. -->
<flag name="right" value="0x05"/>
<!-- Place title in the vertical center of its container, not changing its size. -->
<flag name="center_vertical" value="0x10"/>
<!-- Grow the vertical size of the title if needed so it completely fills its container. -->
<flag name="fill_vertical" value="0x70"/>
<!-- Place title in the horizontal center of its container, not changing its size. -->
<flag name="center_horizontal" value="0x01"/>
<!-- Place the title in the center of its container in both the vertical and horizontal axis, not changing its size. -->
<flag name="center" value="0x11"/>
<!-- Push title to the beginning of its container, not changing its size. -->
<flag name="start" value="0x00800003"/>
<!-- Push title to the end of its container, not changing its size. -->
<flag name="end" value="0x00800005"/>
</attr>
<!-- Specifies how the title should be positioned when expanded. -->
<attr name="expandedTitleGravity">
<!-- Push title to the top of its container, not changing its size. -->
<flag name="top" value="0x30"/>
<!-- Push title to the bottom of its container, not changing its size. -->
<flag name="bottom" value="0x50"/>
<!-- Push title to the left of its container, not changing its size. -->
<flag name="left" value="0x03"/>
<!-- Push title to the right of its container, not changing its size. -->
<flag name="right" value="0x05"/>
<!-- Place title in the vertical center of its container, not changing its size. -->
<flag name="center_vertical" value="0x10"/>
<!-- Grow the vertical size of the title if needed so it completely fills its container. -->
<flag name="fill_vertical" value="0x70"/>
<!-- Place title in the horizontal center of its container, not changing its size. -->
<flag name="center_horizontal" value="0x01"/>
<!-- Place the title in the center of its container in both the vertical and horizontal axis, not changing its size. -->
<flag name="center" value="0x11"/>
<!-- Push title to the beginning of its container, not changing its size. -->
<flag name="start" value="0x00800003"/>
<!-- Push title to the end of its container, not changing its size. -->
<flag name="end" value="0x00800005"/>
</attr>
<!-- Whether the CollapsingToolbarLayout should draw its own collapsing title. -->
<attr name="titleEnabled" format="boolean"/>
<!-- The title to show when titleEnabled is set to true. -->
<attr name="title"/>
<!-- Mode to specify the effect used to collapse and expand the title text. -->
<attr name="titleCollapseMode">
<!-- The expanded title will continuously scale and translate to its final collapsed position. -->
<enum name="scale" value="0"/>
<!-- The expanded title will fade out and translate, and the collapsed title will fade in. -->
<enum name="fade" value="1"/>
</attr>
<!-- The maximum number of lines to display in the expanded state. Experimental Feature. -->
<attr name="maxLines" format="integer" />
<!-- Whether the system window inset top should be applied regardless of
what the layout_height is set to. Experimental Feature. -->
<attr name="forceApplySystemWindowInsetTop" format="boolean" />
<!-- Whether extra height should be added when the title text spans across
multiple lines. Experimental Feature. -->
<attr name="extraMultilineHeightEnabled" format="boolean" />
<!-- The interpolator to use when animating the title position from collapsed to expanded and
vice versa. -->
<attr name="titlePositionInterpolator" format="reference"/>
</declare-styleable>
<declare-styleable name="CollapsingToolbarLayout_Layout">
<attr name="layout_collapseMode">
<!-- The view will act as normal with no collapsing behavior. -->
<enum name="none" value="0"/>
<!-- The view will pin in place. -->
<enum name="pin" value="1"/>
<!-- The view will scroll in a parallax fashion. See the
layout_collapseParallaxMultiplier attribute to change the multiplier. -->
<enum name="parallax" value="2"/>
</attr>
<!-- The multiplier used when layout_collapseMode is set to 'parallax'. The value should
be between 0.0 and 1.0. -->
<attr name="layout_collapseParallaxMultiplier" format="float"/>
</declare-styleable>
<declare-styleable name="MaterialToolbar">
<!-- The tint color for the navigation button icon drawable corresponding to
the "app:navigationIcon" attribute. -->
<attr name="navigationIconTint" />
<!-- Whether the title text corresponding to the "app:title" attribute
should be centered horizontally within the toolbar. Default is false.
-->
<attr name="titleCentered" format="boolean" />
<!-- Whether the subtitle text corresponding to the "app:subtitle" attribute
should be centered horizontally within the toolbar. Default is false.
-->
<attr name="subtitleCentered" format="boolean" />
<!-- adjust view bounds for logo's imageView. -->
<attr name="logoAdjustViewBounds" format="boolean" />
<!-- scale type for logo's imageView. -->
<attr name="logoScaleType">
<!-- Scale using the image matrix when drawing. See
{@link android.widget.ImageView#setImageMatrix(Matrix)}. -->
<enum name="matrix" value="0" />
<!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#FILL}. -->
<enum name="fitXY" value="1" />
<!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#START}. -->
<enum name="fitStart" value="2" />
<!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#CENTER}. -->
<enum name="fitCenter" value="3" />
<!-- Scale the image using {@link android.graphics.Matrix.ScaleToFit#END}. -->
<enum name="fitEnd" value="4" />
<!-- Center the image in the view, but perform no scaling. -->
<enum name="center" value="5" />
<!-- Scale the image uniformly (maintain the image's aspect ratio) so both dimensions
(width and height) of the image will be equal to or larger than the corresponding
dimension of the view (minus padding). The image is then centered in the view. -->
<enum name="centerCrop" value="6" />
<!-- Scale the image uniformly (maintain the image's aspect ratio) so that both
dimensions (width and height) of the image will be equal to or less than the
corresponding dimension of the view (minus padding). The image is then centered in
the view. -->
<enum name="centerInside" value="7" />
</attr>
</declare-styleable>
</resources>