blob: e155e23a9a7a3da8bd270bf2887c25b73b3de532 [file] [log] [blame]
Chris Banes16fb73e2015-02-16 18:24:06 +00001<?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<resources>
18
19 <declare-styleable name="FloatingActionButton">
20 <!-- Background for the FloatingActionButton -->
Jeff Browna70aed72015-04-13 01:09:09 -070021 <attr name="android:background"/>
22 <attr name="backgroundTint"/>
23 <attr name="backgroundTintMode"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000024
25 <!-- Ripple color for the FAB. -->
Jeff Browna70aed72015-04-13 01:09:09 -070026 <attr name="rippleColor" format="color|reference"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000027 <!-- Size for the FAB. -->
28 <attr name="fabSize">
Jeff Browna70aed72015-04-13 01:09:09 -070029 <enum name="normal" value="0"/>
30 <enum name="mini" value="1"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000031 </attr>
32 <!-- Elevation value for the FAB -->
Jeff Browna70aed72015-04-13 01:09:09 -070033 <attr name="elevation"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000034 <!-- TranslationZ value for the FAB when pressed-->
Jeff Browna70aed72015-04-13 01:09:09 -070035 <attr name="pressedTranslationZ" format="dimension|reference"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000036 </declare-styleable>
37
38 <declare-styleable name="ScrimInsetsFrameLayout">
Jeff Browna70aed72015-04-13 01:09:09 -070039 <attr name="insetForeground" format="color|reference"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000040 </declare-styleable>
41
Chris Banes8ac0dd32015-03-02 09:04:03 +000042 <declare-styleable name="NavigationView">
Jeff Browna70aed72015-04-13 01:09:09 -070043 <attr name="android:background"/>
44 <attr name="android:fitsSystemWindows"/>
45 <attr name="android:maxWidth"/>
46 <attr name="elevation"/>
Clara Bayarri47af33a2015-04-09 11:38:09 +010047 <!-- The menu resource to inflate and populate items from. -->
Jeff Browna70aed72015-04-13 01:09:09 -070048 <attr name="menu" format="reference"/>
49 <attr name="itemTint" format="color|reference"/>
50 <attr name="itemBackground" format="reference"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000051 </declare-styleable>
52
53 <declare-styleable name="TabLayout">
Jeff Browna70aed72015-04-13 01:09:09 -070054 <attr name="tabIndicatorColor" format="color"/>
55 <attr name="tabIndicatorHeight" format="dimension"/>
56 <attr name="tabContentStart" format="dimension"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000057
Jeff Browna70aed72015-04-13 01:09:09 -070058 <attr name="tabBackground" format="reference"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000059
60 <attr name="tabMode">
Jeff Browna70aed72015-04-13 01:09:09 -070061 <enum name="scrollable" value="0"/>
62 <enum name="fixed" value="1"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000063 </attr>
64
65 <!-- Standard gravity constant that a child supplies to its parent.
66 Defines how the child view should be positioned, on both the X and Y axes,
67 within its enclosing layout. -->
68 <attr name="tabGravity">
69 <enum name="fill" value="0"/>
70 <enum name="center" value="1"/>
71 </attr>
72
Jeff Browna70aed72015-04-13 01:09:09 -070073 <attr name="tabMinWidth" format="dimension"/>
74 <attr name="tabMaxWidth" format="dimension"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000075
Jeff Browna70aed72015-04-13 01:09:09 -070076 <attr name="tabTextAppearance" format="reference"/>
77 <attr name="tabSelectedTextColor" format="color"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000078
Jeff Browna70aed72015-04-13 01:09:09 -070079 <attr name="tabPaddingStart" format="dimension"/>
80 <attr name="tabPaddingTop" format="dimension"/>
81 <attr name="tabPaddingEnd" format="dimension"/>
82 <attr name="tabPaddingBottom" format="dimension"/>
83 <attr name="tabPadding" format="dimension"/>
Chris Banes16fb73e2015-02-16 18:24:06 +000084 </declare-styleable>
85
Chris Banes8ac0dd32015-03-02 09:04:03 +000086 <declare-styleable name="CoordinatorLayout">
87 <!-- A reference to an array of integers representing the
88 locations of horizontal keylines in dp from the starting edge.
89 Child views can refer to these keylines for alignment using
90 layout_keyline="index" where index is a 0-based index into
91 this array. -->
Jeff Browna70aed72015-04-13 01:09:09 -070092 <attr name="keylines" format="reference"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +000093 </declare-styleable>
94
95 <declare-styleable name="CoordinatorLayout_LayoutParams">
Jeff Browna70aed72015-04-13 01:09:09 -070096 <attr name="android:layout_gravity"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +000097 <!-- The class name of a Behavior class defining special runtime behavior
98 for this child view. -->
Jeff Browna70aed72015-04-13 01:09:09 -070099 <attr name="layout_behavior" format="string"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000100 <!-- The id of an anchor view that this view should position relative to. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700101 <attr name="layout_anchor" format="reference"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000102 <!-- The index of a keyline this view should position relative to.
103 android:layout_gravity will affect how the view aligns to the
104 specified keyline. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700105 <attr name="layout_keyline" format="integer"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000106
107 <!-- Specifies how an object should position relative to an anchor, on both the X and Y axes,
108 within its parent's bounds. -->
109 <attr name="layout_anchorGravity">
110 <!-- Push object to the top of its container, not changing its size. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700111 <flag name="top" value="0x30"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000112 <!-- Push object to the bottom of its container, not changing its size. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700113 <flag name="bottom" value="0x50"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000114 <!-- Push object to the left of its container, not changing its size. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700115 <flag name="left" value="0x03"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000116 <!-- Push object to the right of its container, not changing its size. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700117 <flag name="right" value="0x05"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000118 <!-- Place object in the vertical center of its container, not changing its size. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700119 <flag name="center_vertical" value="0x10"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000120 <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700121 <flag name="fill_vertical" value="0x70"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000122 <!-- Place object in the horizontal center of its container, not changing its size. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700123 <flag name="center_horizontal" value="0x01"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000124 <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700125 <flag name="fill_horizontal" value="0x07"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000126 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700127 <flag name="center" value="0x11"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000128 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700129 <flag name="fill" value="0x77"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000130 <!-- Additional option that can be set to have the top and/or bottom edges of
131 the child clipped to its container's bounds.
132 The clip will be based on the vertical gravity: a top gravity will clip the bottom
133 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700134 <flag name="clip_vertical" value="0x80"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000135 <!-- Additional option that can be set to have the left and/or right edges of
136 the child clipped to its container's bounds.
137 The clip will be based on the horizontal gravity: a left gravity will clip the right
138 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700139 <flag name="clip_horizontal" value="0x08"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000140 <!-- Push object to the beginning of its container, not changing its size. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700141 <flag name="start" value="0x00800003"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000142 <!-- Push object to the end of its container, not changing its size. -->
Jeff Browna70aed72015-04-13 01:09:09 -0700143 <flag name="end" value="0x00800005"/>
Chris Banes8ac0dd32015-03-02 09:04:03 +0000144 </attr>
145 </declare-styleable>
Clara Bayarri4ec01cd2015-03-13 12:01:35 +0000146
147 <declare-styleable name="TextInputLayout">
Jeff Browna70aed72015-04-13 01:09:09 -0700148 <attr name="hintTextAppearance" format="reference"/>
Clara Bayarri4ec01cd2015-03-13 12:01:35 +0000149 <!-- The hint to display in the floating label -->
Jeff Browna70aed72015-04-13 01:09:09 -0700150 <attr name="android:hint"/>
Clara Bayarri4ec01cd2015-03-13 12:01:35 +0000151 <!-- Whether the layout is laid out as if an error will be displayed -->
Jeff Browna70aed72015-04-13 01:09:09 -0700152 <attr name="errorEnabled" format="boolean"/>
Clara Bayarri4ec01cd2015-03-13 12:01:35 +0000153 <!-- TextAppearance of any error message displayed -->
Jeff Browna70aed72015-04-13 01:09:09 -0700154 <attr name="errorTextAppearance" format="reference"/>
Clara Bayarri4ec01cd2015-03-13 12:01:35 +0000155 </declare-styleable>
156
Ying Wang987de842015-03-18 16:20:57 -0700157 <declare-styleable name="SnackbarLayout">
Jeff Browna70aed72015-04-13 01:09:09 -0700158 <attr name="android:maxWidth"/>
159 <attr name="elevation"/>
160 <attr name="maxActionInlineWidth" format="dimension"/>
161 </declare-styleable>
162
Eino-Ville Talvala80161d92015-04-15 13:11:48 -0700163 <declare-styleable name="AppBarLayout">
164 <attr name="elevation" />
165 <attr name="android:background" />
166 </declare-styleable>
167
Jeff Browna70aed72015-04-13 01:09:09 -0700168 <declare-styleable name="AppBarLayout_LayoutParams">
169 <attr name="layout_scrollFlags">
170 <!-- The view will be scroll in direct relation to scroll events. This flag needs to be
171 set for any of the other flags to take effect. If any sibling views
172 before this one do not have this flag, then this value has no effect. -->
173 <flag name="scroll" value="0x1"/>
174
175 <!-- When exiting (scrolling off screen) the view will be scrolled until it is
176 'collapsed'. The collapsed height is defined by the view's minimum height. -->
177 <flag name="exitUntilCollapsed" value="0x2"/>
178
179 <!-- When entering (scrolling on screen) the view will scroll on any downwards
180 scroll event, regardless of whether the scrolling view is also scrolling. This
181 is commonly referred to as the 'quick return' pattern. -->
182 <flag name="enterAlways" value="0x4"/>
183
184 <!-- An additional flag for 'enterAlways' which modifies the returning view to
185 only initially scroll back to it's collapsed height. Once the scrolling view has
186 reached the end of it's scroll range, the remainder of this view will be scrolled
187 into view. -->
188 <flag name="enterAlwaysCollapsed" value="0x8"/>
189 </attr>
190
191 <!-- An interpolator to use when scrolling this View. Only takes effect when View
192 is scrollable. -->
193 <attr name="layout_scrollInterpolator" format="reference" />
194 </declare-styleable>
195
196 <declare-styleable name="ScrollingViewBehavior_Params">
197 <!-- The amount that the scrolling view should overlap the bottom of any AppBarLayout -->
198 <attr name="behavior_overlapTop" format="dimension" />
199 </declare-styleable>
200
201 <declare-styleable name="CollapsingToolbarLayout">
202 <attr name="expandedTitleMargin" format="dimension"/>
203 <attr name="expandedTitleMarginStart" format="dimension"/>
204 <attr name="expandedTitleMarginBottom" format="dimension"/>
205 <attr name="expandedTitleMarginEnd" format="dimension"/>
206 <attr name="expandedTitleTextAppearance" format="reference"/>
207 <attr name="collapsedTitleTextAppearance" format="reference"/>
208 <attr name="foregroundScrimColor" format="color"/>
209 </declare-styleable>
210
211 <declare-styleable name="CollapsingAppBarLayout_LayoutParams">
212 <attr name="layout_collapseMode">
213 <!-- The view will act as normal with no collapsing behavior. -->
214 <enum name="none" value="0"/>
215 <!-- The view will pin in place. -->
216 <enum name="pin" value="1"/>
217 <!-- The view will scroll in a parallax fashion. See the
218 layout_collapseParallaxMultiplier attribute to change the multiplier. -->
219 <enum name="parallax" value="2"/>
220 </attr>
221
222 <!-- The multiplier used when layout_collapseMode is set to 'parallax'. The value should
223 be between 0.0 and 1.0. -->
224 <attr name="layout_collapseParallaxMultiplier" format="float"/>
Ying Wang987de842015-03-18 16:20:57 -0700225 </declare-styleable>
226
Chris Banes16fb73e2015-02-16 18:24:06 +0000227</resources>
228