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 <resources> 18 19 <declare-styleable name="FloatingActionButton"> 20 <!-- Background for the FloatingActionButton --> 21 <attr name="android:background"/> 22 <attr name="backgroundTint"/> 23 <attr name="backgroundTintMode"/> 24 25 <!-- Ripple color for the FAB. --> 26 <attr name="rippleColor" format="color"/> 27 <!-- Size for the FAB. --> 28 <attr name="fabSize"> 29 <enum name="normal" value="0"/> 30 <enum name="mini" value="1"/> 31 </attr> 32 <!-- Elevation value for the FAB --> 33 <attr name="elevation"/> 34 <!-- TranslationZ value for the FAB when pressed--> 35 <attr name="pressedTranslationZ" format="dimension"/> 36 <!-- The width of the border around the FAB. --> 37 <attr name="borderWidth" format="dimension"/> 38 </declare-styleable> 39 40 <declare-styleable name="ScrimInsetsFrameLayout"> 41 <attr name="insetForeground" format="color|reference"/> 42 </declare-styleable> 43 44 <declare-styleable name="NavigationView"> 45 <attr name="android:background"/> 46 <attr name="android:fitsSystemWindows"/> 47 <attr name="android:maxWidth"/> 48 <attr name="elevation"/> 49 <!-- The menu resource to inflate and populate items from. --> 50 <attr name="menu" format="reference"/> 51 <attr name="itemIconTint" format="color"/> 52 <attr name="itemTextColor" format="color"/> 53 <attr name="itemBackground" format="reference"/> 54 <attr name="itemTextAppearance" format="reference"/> 55 <!-- Layout resource to inflate as the header --> 56 <attr name="headerLayout" format="reference"/> 57 </declare-styleable> 58 59 <declare-styleable name="TabLayout"> 60 <attr name="tabIndicatorColor" format="color"/> 61 <attr name="tabIndicatorHeight" format="dimension"/> 62 <attr name="tabContentStart" format="dimension"/> 63 64 <attr name="tabBackground" format="reference"/> 65 66 <attr name="tabMode"> 67 <enum name="scrollable" value="0"/> 68 <enum name="fixed" value="1"/> 69 </attr> 70 71 <!-- Standard gravity constant that a child supplies to its parent. 72 Defines how the child view should be positioned, on both the X and Y axes, 73 within its enclosing layout. --> 74 <attr name="tabGravity"> 75 <enum name="fill" value="0"/> 76 <enum name="center" value="1"/> 77 </attr> 78 79 <attr name="tabMinWidth" format="dimension"/> 80 <attr name="tabMaxWidth" format="dimension"/> 81 82 <attr name="tabTextAppearance" format="reference"/> 83 <attr name="tabTextColor" format="color"/> 84 <attr name="tabSelectedTextColor" format="color"/> 85 86 <attr name="tabPaddingStart" format="dimension"/> 87 <attr name="tabPaddingTop" format="dimension"/> 88 <attr name="tabPaddingEnd" format="dimension"/> 89 <attr name="tabPaddingBottom" format="dimension"/> 90 <attr name="tabPadding" format="dimension"/> 91 </declare-styleable> 92 93 <declare-styleable name="CoordinatorLayout"> 94 <!-- A reference to an array of integers representing the 95 locations of horizontal keylines in dp from the starting edge. 96 Child views can refer to these keylines for alignment using 97 layout_keyline="index" where index is a 0-based index into 98 this array. --> 99 <attr name="keylines" format="reference"/> 100 <!-- Drawable to display behind the status bar when the view is set to draw behind it. --> 101 <attr name="statusBarBackground" format="reference"/> 102 </declare-styleable> 103 104 <declare-styleable name="CoordinatorLayout_LayoutParams"> 105 <attr name="android:layout_gravity"/> 106 <!-- The class name of a Behavior class defining special runtime behavior 107 for this child view. --> 108 <attr name="layout_behavior" format="string"/> 109 <!-- The id of an anchor view that this view should position relative to. --> 110 <attr name="layout_anchor" format="reference"/> 111 <!-- The index of a keyline this view should position relative to. 112 android:layout_gravity will affect how the view aligns to the 113 specified keyline. --> 114 <attr name="layout_keyline" format="integer"/> 115 116 <!-- Specifies how an object should position relative to an anchor, on both the X and Y axes, 117 within its parent's bounds. --> 118 <attr name="layout_anchorGravity"> 119 <!-- Push object to the top of its container, not changing its size. --> 120 <flag name="top" value="0x30"/> 121 <!-- Push object to the bottom of its container, not changing its size. --> 122 <flag name="bottom" value="0x50"/> 123 <!-- Push object to the left of its container, not changing its size. --> 124 <flag name="left" value="0x03"/> 125 <!-- Push object to the right of its container, not changing its size. --> 126 <flag name="right" value="0x05"/> 127 <!-- Place object in the vertical center of its container, not changing its size. --> 128 <flag name="center_vertical" value="0x10"/> 129 <!-- Grow the vertical size of the object if needed so it completely fills its container. --> 130 <flag name="fill_vertical" value="0x70"/> 131 <!-- Place object in the horizontal center of its container, not changing its size. --> 132 <flag name="center_horizontal" value="0x01"/> 133 <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> 134 <flag name="fill_horizontal" value="0x07"/> 135 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> 136 <flag name="center" value="0x11"/> 137 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> 138 <flag name="fill" value="0x77"/> 139 <!-- Additional option that can be set to have the top and/or bottom edges of 140 the child clipped to its container's bounds. 141 The clip will be based on the vertical gravity: a top gravity will clip the bottom 142 edge, a bottom gravity will clip the top edge, and neither will clip both edges. --> 143 <flag name="clip_vertical" value="0x80"/> 144 <!-- Additional option that can be set to have the left and/or right edges of 145 the child clipped to its container's bounds. 146 The clip will be based on the horizontal gravity: a left gravity will clip the right 147 edge, a right gravity will clip the left edge, and neither will clip both edges. --> 148 <flag name="clip_horizontal" value="0x08"/> 149 <!-- Push object to the beginning of its container, not changing its size. --> 150 <flag name="start" value="0x00800003"/> 151 <!-- Push object to the end of its container, not changing its size. --> 152 <flag name="end" value="0x00800005"/> 153 </attr> 154 </declare-styleable> 155 156 <declare-styleable name="TextInputLayout"> 157 <attr name="hintTextAppearance" format="reference"/> 158 <!-- The hint to display in the floating label --> 159 <attr name="android:hint"/> 160 <!-- Whether the layout is laid out as if an error will be displayed --> 161 <attr name="errorEnabled" format="boolean"/> 162 <!-- TextAppearance of any error message displayed --> 163 <attr name="errorTextAppearance" format="reference"/> 164 <attr name="android:textColorHint"/> 165 <!-- Whether to animate hint state changes. --> 166 <attr name="hintAnimationEnabled" format="boolean"/> 167 </declare-styleable> 168 169 <declare-styleable name="SnackbarLayout"> 170 <attr name="android:maxWidth"/> 171 <attr name="elevation"/> 172 <attr name="maxActionInlineWidth" format="dimension"/> 173 </declare-styleable> 174 175 <declare-styleable name="AppBarLayout"> 176 <attr name="elevation" /> 177 <attr name="android:background" /> 178 <!-- The initial expanded state for the AppBarLayout. This only takes effect when this 179 view is a direct child of a CoordinatorLayout. --> 180 <attr name="expanded" format="boolean" /> 181 </declare-styleable> 182 183 <declare-styleable name="AppBarLayout_LayoutParams"> 184 <attr name="layout_scrollFlags"> 185 <!-- The view will be scroll in direct relation to scroll events. This flag needs to be 186 set for any of the other flags to take effect. If any sibling views 187 before this one do not have this flag, then this value has no effect. --> 188 <flag name="scroll" value="0x1"/> 189 190 <!-- When exiting (scrolling off screen) the view will be scrolled until it is 191 'collapsed'. The collapsed height is defined by the view's minimum height. --> 192 <flag name="exitUntilCollapsed" value="0x2"/> 193 194 <!-- When entering (scrolling on screen) the view will scroll on any downwards 195 scroll event, regardless of whether the scrolling view is also scrolling. This 196 is commonly referred to as the 'quick return' pattern. --> 197 <flag name="enterAlways" value="0x4"/> 198 199 <!-- An additional flag for 'enterAlways' which modifies the returning view to 200 only initially scroll back to it's collapsed height. Once the scrolling view has 201 reached the end of it's scroll range, the remainder of this view will be scrolled 202 into view. --> 203 <flag name="enterAlwaysCollapsed" value="0x8"/> 204 </attr> 205 206 <!-- An interpolator to use when scrolling this View. Only takes effect when View 207 is scrollable. --> 208 <attr name="layout_scrollInterpolator" format="reference" /> 209 </declare-styleable> 210 211 <declare-styleable name="ScrollingViewBehavior_Params"> 212 <!-- The amount that the scrolling view should overlap the bottom of any AppBarLayout --> 213 <attr name="behavior_overlapTop" format="dimension" /> 214 </declare-styleable> 215 216 <declare-styleable name="CollapsingToolbarLayout"> 217 <!-- Specifies extra space on the start, top, end and bottom 218 sides of the the expanded title text. Margin values should be positive. --> 219 <attr name="expandedTitleMargin" format="dimension"/> 220 <!-- Specifies extra space on the start side of the the expanded title text. 221 Margin values should be positive. --> 222 <attr name="expandedTitleMarginStart" format="dimension"/> 223 <!-- Specifies extra space on the top side of the the expanded title text. 224 Margin values should be positive. --> 225 <attr name="expandedTitleMarginTop" format="dimension"/> 226 <!-- Specifies extra space on the end side of the the expanded title text. 227 Margin values should be positive. --> 228 <attr name="expandedTitleMarginEnd" format="dimension"/> 229 <!-- Specifies extra space on the bottom side of the the expanded title text. 230 Margin values should be positive. --> 231 <attr name="expandedTitleMarginBottom" format="dimension"/> 232 <!-- The text appearance of the CollapsingToolbarLayout's title when it is fully 233 'expanded' --> 234 <attr name="expandedTitleTextAppearance" format="reference"/> 235 <!-- The text appearance of the CollapsingToolbarLayouts title when it is fully 236 'collapsed' --> 237 <attr name="collapsedTitleTextAppearance" format="reference"/> 238 <!-- The drawable to use as a scrim on top of the CollapsingToolbarLayouts content when 239 it has been scrolled sufficiently off screen. --> 240 <attr name="contentScrim" format="color"/> 241 <!-- The drawable to use as a scrim for the status bar content when the 242 CollapsingToolbarLayout has been scrolled sufficiently off screen. Only works on 243 Lollipop with the correct setup. --> 244 <attr name="statusBarScrim" format="color" /> 245 <!-- The id of the primary Toolbar child that you wish to use for the purpose of collapsing. 246 If you do not set this then the first Toolbar child found will be used. --> 247 <attr name="toolbarId" format="reference"/> 248 249 <!-- Specifies how the title should be positioned when collapsed. --> 250 <attr name="collapsedTitleGravity"> 251 <!-- Push title to the top of its container, not changing its size. --> 252 <flag name="top" value="0x30"/> 253 <!-- Push title to the bottom of its container, not changing its size. --> 254 <flag name="bottom" value="0x50"/> 255 <!-- Push title to the left of its container, not changing its size. --> 256 <flag name="left" value="0x03"/> 257 <!-- Push title to the right of its container, not changing its size. --> 258 <flag name="right" value="0x05"/> 259 <!-- Place title in the vertical center of its container, not changing its size. --> 260 <flag name="center_vertical" value="0x10"/> 261 <!-- Grow the vertical size of the title if needed so it completely fills its container. --> 262 <flag name="fill_vertical" value="0x70"/> 263 <!-- Place title in the horizontal center of its container, not changing its size. --> 264 <flag name="center_horizontal" value="0x01"/> 265 <!-- Place the title in the center of its container in both the vertical and horizontal axis, not changing its size. --> 266 <flag name="center" value="0x11"/> 267 <!-- Push title to the beginning of its container, not changing its size. --> 268 <flag name="start" value="0x00800003"/> 269 <!-- Push title to the end of its container, not changing its size. --> 270 <flag name="end" value="0x00800005"/> 271 </attr> 272 273 <!-- Specifies how the title should be positioned when expanded. --> 274 <attr name="expandedTitleGravity"> 275 <!-- Push title to the top of its container, not changing its size. --> 276 <flag name="top" value="0x30"/> 277 <!-- Push title to the bottom of its container, not changing its size. --> 278 <flag name="bottom" value="0x50"/> 279 <!-- Push title to the left of its container, not changing its size. --> 280 <flag name="left" value="0x03"/> 281 <!-- Push title to the right of its container, not changing its size. --> 282 <flag name="right" value="0x05"/> 283 <!-- Place title in the vertical center of its container, not changing its size. --> 284 <flag name="center_vertical" value="0x10"/> 285 <!-- Grow the vertical size of the title if needed so it completely fills its container. --> 286 <flag name="fill_vertical" value="0x70"/> 287 <!-- Place title in the horizontal center of its container, not changing its size. --> 288 <flag name="center_horizontal" value="0x01"/> 289 <!-- Place the title in the center of its container in both the vertical and horizontal axis, not changing its size. --> 290 <flag name="center" value="0x11"/> 291 <!-- Push title to the beginning of its container, not changing its size. --> 292 <flag name="start" value="0x00800003"/> 293 <!-- Push title to the end of its container, not changing its size. --> 294 <flag name="end" value="0x00800005"/> 295 </attr> 296 297 <!-- Whether the CollapsingToolbarLayout should draw its own shrinking/growing title. --> 298 <attr name="titleEnabled" format="boolean"/> 299 <!-- The title to show when titleEnabled is set to true. --> 300 <attr name="title"/> 301 </declare-styleable> 302 303 <declare-styleable name="CollapsingAppBarLayout_LayoutParams"> 304 <attr name="layout_collapseMode"> 305 <!-- The view will act as normal with no collapsing behavior. --> 306 <enum name="none" value="0"/> 307 <!-- The view will pin in place. --> 308 <enum name="pin" value="1"/> 309 <!-- The view will scroll in a parallax fashion. See the 310 layout_collapseParallaxMultiplier attribute to change the multiplier. --> 311 <enum name="parallax" value="2"/> 312 </attr> 313 314 <!-- The multiplier used when layout_collapseMode is set to 'parallax'. The value should 315 be between 0.0 and 1.0. --> 316 <attr name="layout_collapseParallaxMultiplier" format="float"/> 317 </declare-styleable> 318 319 </resources> 320 321