/
attrs.xml
73 lines (72 loc) · 3.6 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
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2017 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>
<declare-styleable name="BottomAppBar">
<!-- Background for the BottomAppBar. -->
<attr name="backgroundTint"/>
<!-- The tint color for the navigation button icon drawable corresponding to
the "app:navigationIcon" attribute. -->
<attr name="navigationIconTint"/>
<!-- Elevation for the BottomAppBar. -->
<attr name="elevation"/>
<!-- The alignment of the fab relative to the BottomAppBar. -->
<attr name="fabAlignmentMode">
<!-- Mode that aligns the fab to the center. -->
<enum name="center" value="0"/>
<!-- Mode that aligns the fab to the end. -->
<enum name="end" value="1"/>
</attr>
<!-- The anchor mode of the fab relative to the BottomAppBar. -->
<attr name="fabAnchorMode">
<!-- Mode that anchors the fab embedded inside the BottomAppBar. -->
<enum name="embed" value="0"/>
<!-- Mode that anchors the fab to be cradled within the top edge of the BottomAppBar. -->
<enum name="cradle" value="1"/>
</attr>
<!-- The animation mode that should be used when the fab animates between alignment modes. -->
<attr name="fabAnimationMode">
<!-- Mode that scales the fab down to a point, moves it, then scales the fab back to its normal size. -->
<enum name="scale" value="0"/>
<!-- Mode that slides the fab from one alignment mode to the next. -->
<enum name="slide" value="1"/>
</attr>
<!-- The margin between the semi-circular cradle for the fab and the fab. -->
<attr name="fabCradleMargin" format="dimension"/>
<!-- The radius of the rounded corners on each side of the cradle. -->
<attr name="fabCradleRoundedCornerRadius" format="dimension"/>
<!-- The vertical offset between the fab from the cradle. -->
<attr name="fabCradleVerticalOffset" format="dimension"/>
<!-- Whether the BottomAppBar should hide when a NestedScrollView is scrolled. -->
<attr name="hideOnScroll" format="boolean"/>
<!-- Whether the BottomAppBar should apply padding to be above the bottom window insets. -->
<attr name="paddingBottomSystemWindowInsets"/>
<!-- Whether the BottomAppBar should apply padding to be to the right of the left window insets. -->
<attr name="paddingLeftSystemWindowInsets"/>
<!-- Whether the BottomAppBar should apply padding to be to the left of the right window insets. -->
<attr name="paddingRightSystemWindowInsets"/>
<!-- The alignment of the BottomAppBar menu items. -->
<attr name="menuAlignmentMode">
<!-- Mode that aligns the menu automatically to avoid the FAB. Menu will be aligned at the end
when the FAB is center aligned, and start when the FAB is end aligned. -->
<enum name="auto" value="0"/>
<!-- Mode that aligns the menu to the start. -->
<enum name="start" value="1"/>
</attr>
</declare-styleable>
<!-- Style to use for BottomAppBar in this theme. -->
<attr name="bottomAppBarStyle" format="reference"/>
</resources>