1<?xml version="1.0" encoding="utf-8"?> 2<resources> 3 <attr format="reference" name="coordinatorLayoutStyle"/> 4 <declare-styleable name="CoordinatorLayout"> 5 <!-- A reference to an array of integers representing the 6 locations of horizontal keylines in dp from the starting edge. 7 Child views can refer to these keylines for alignment using 8 layout_keyline="index" where index is a 0-based index into 9 this array. --> 10 <attr format="reference" name="keylines"/> 11 <!-- Drawable to display behind the status bar when the view is set to draw behind it. --> 12 <attr format="color|reference" name="statusBarBackground"/> 13 </declare-styleable> 14 <declare-styleable name="CoordinatorLayout_Layout"> 15 <attr name="android:layout_gravity"/> 16 <!-- The class name of a Behavior class defining special runtime behavior 17 for this child view. --> 18 <attr format="string" name="layout_behavior"/> 19 <!-- The id of an anchor view that this view should position relative to. --> 20 <attr format="reference" name="layout_anchor"/> 21 <!-- The index of a keyline this view should position relative to. 22 android:layout_gravity will affect how the view aligns to the 23 specified keyline. --> 24 <attr format="integer" name="layout_keyline"/> 25 26 <!-- Specifies how an object should position relative to an anchor, on both the X and Y axes, 27 within its parent's bounds. --> 28 <attr name="layout_anchorGravity"> 29 <!-- Push object to the top of its container, not changing its size. --> 30 <flag name="top" value="0x30"/> 31 <!-- Push object to the bottom of its container, not changing its size. --> 32 <flag name="bottom" value="0x50"/> 33 <!-- Push object to the left of its container, not changing its size. --> 34 <flag name="left" value="0x03"/> 35 <!-- Push object to the right of its container, not changing its size. --> 36 <flag name="right" value="0x05"/> 37 <!-- Place object in the vertical center of its container, not changing its size. --> 38 <flag name="center_vertical" value="0x10"/> 39 <!-- Grow the vertical size of the object if needed so it completely fills its container. --> 40 <flag name="fill_vertical" value="0x70"/> 41 <!-- Place object in the horizontal center of its container, not changing its size. --> 42 <flag name="center_horizontal" value="0x01"/> 43 <!-- Grow the horizontal size of the object if needed so it completely fills its container. --> 44 <flag name="fill_horizontal" value="0x07"/> 45 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. --> 46 <flag name="center" value="0x11"/> 47 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. --> 48 <flag name="fill" value="0x77"/> 49 <!-- Additional option that can be set to have the top and/or bottom edges of 50 the child clipped to its container's bounds. 51 The clip will be based on the vertical gravity: a top gravity will clip the bottom 52 edge, a bottom gravity will clip the top edge, and neither will clip both edges. --> 53 <flag name="clip_vertical" value="0x80"/> 54 <!-- Additional option that can be set to have the left and/or right edges of 55 the child clipped to its container's bounds. 56 The clip will be based on the horizontal gravity: a left gravity will clip the right 57 edge, a right gravity will clip the left edge, and neither will clip both edges. --> 58 <flag name="clip_horizontal" value="0x08"/> 59 <!-- Push object to the beginning of its container, not changing its size. --> 60 <flag name="start" value="0x00800003"/> 61 <!-- Push object to the end of its container, not changing its size. --> 62 <flag name="end" value="0x00800005"/> 63 </attr> 64 65 <!-- Specifies how this view insets the CoordinatorLayout and make some other views 66 dodge it. --> 67 <attr format="enum" name="layout_insetEdge"> 68 <!-- Don't inset. --> 69 <enum name="none" value="0x0"/> 70 <!-- Inset the top edge. --> 71 <enum name="top" value="0x30"/> 72 <!-- Inset the bottom edge. --> 73 <enum name="bottom" value="0x50"/> 74 <!-- Inset the left edge. --> 75 <enum name="left" value="0x03"/> 76 <!-- Inset the right edge. --> 77 <enum name="right" value="0x05"/> 78 <!-- Inset the start edge. --> 79 <enum name="start" value="0x00800003"/> 80 <!-- Inset the end edge. --> 81 <enum name="end" value="0x00800005"/> 82 </attr> 83 <!-- Specifies how this view dodges the inset edges of the CoordinatorLayout. --> 84 <attr name="layout_dodgeInsetEdges"> 85 <!-- Don't dodge any edges --> 86 <flag name="none" value="0x0"/> 87 <!-- Dodge the top inset edge. --> 88 <flag name="top" value="0x30"/> 89 <!-- Dodge the bottom inset edge. --> 90 <flag name="bottom" value="0x50"/> 91 <!-- Dodge the left inset edge. --> 92 <flag name="left" value="0x03"/> 93 <!-- Dodge the right inset edge. --> 94 <flag name="right" value="0x05"/> 95 <!-- Dodge the start inset edge. --> 96 <flag name="start" value="0x00800003"/> 97 <!-- Dodge the end inset edge. --> 98 <flag name="end" value="0x00800005"/> 99 <!-- Dodge all the inset edges. --> 100 <flag name="all" value="0x77"/> 101 </attr> 102 </declare-styleable> 103 <style name="Widget.Support.CoordinatorLayout" parent="android:Widget"> 104 <item name="statusBarBackground">#000000</item> 105 </style> 106</resources>