blob: bf81b5428ff88f29e85b3e63991181c6ed5f8de5 [file] [log] [blame]
Kirill Grouchnikovda36c5c2015-01-29 17:46:51 -05001<?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-->
Kirill Grouchnikovda36c5c2015-01-29 17:46:51 -050017<resources>
18
19 <declare-styleable name="FloatingActionButton">
20 <!-- Background for the FloatingActionButton -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +000021 <attr name="android:background" />
22 <attr name="backgroundTint" />
23 <attr name="backgroundTintMode" />
Kirill Grouchnikovda36c5c2015-01-29 17:46:51 -050024
25 <!-- Ripple color for the FAB. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +000026 <attr name="rippleColor" format="color|reference" />
Kirill Grouchnikovda36c5c2015-01-29 17:46:51 -050027 <!-- Size for the FAB. -->
28 <attr name="fabSize">
Qiwen Zhao1a874e22015-06-24 20:38:22 +000029 <enum name="normal" value="0" />
30 <enum name="mini" value="1" />
Kirill Grouchnikovda36c5c2015-01-29 17:46:51 -050031 </attr>
32 <!-- Elevation value for the FAB -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +000033 <attr name="elevation" />
Kirill Grouchnikovda36c5c2015-01-29 17:46:51 -050034 <!-- TranslationZ value for the FAB when pressed-->
Qiwen Zhao1a874e22015-06-24 20:38:22 +000035 <attr name="pressedTranslationZ" format="dimension|reference" />
Kirill Grouchnikovda36c5c2015-01-29 17:46:51 -050036 </declare-styleable>
37
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070038 <declare-styleable name="ScrimInsetsFrameLayout">
Qiwen Zhao1a874e22015-06-24 20:38:22 +000039 <attr name="insetForeground" format="color|reference" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070040 </declare-styleable>
41
42 <declare-styleable name="NavigationView">
Qiwen Zhao1a874e22015-06-24 20:38:22 +000043 <attr name="android:elevation" />
44 <attr name="android:background" />
45 <attr name="android:fitsSystemWindows" />
46 <attr name="android:maxWidth" />
47 <attr name="itemTint" format="color|reference" />
48 <attr name="itemBackground" format="reference" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070049 </declare-styleable>
50
51 <declare-styleable name="TabLayout">
Qiwen Zhao1a874e22015-06-24 20:38:22 +000052 <attr name="tabIndicatorColor" format="color" />
53 <attr name="tabIndicatorHeight" format="dimension" />
54 <attr name="tabContentStart" format="dimension" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070055
Qiwen Zhao1a874e22015-06-24 20:38:22 +000056 <attr name="tabBackground" format="reference" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070057
58 <attr name="tabMode">
Qiwen Zhao1a874e22015-06-24 20:38:22 +000059 <enum name="scrollable" value="0" />
60 <enum name="fixed" value="1" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070061 </attr>
62
63 <!-- Standard gravity constant that a child supplies to its parent.
64 Defines how the child view should be positioned, on both the X and Y axes,
65 within its enclosing layout. -->
66 <attr name="tabGravity">
67 <enum name="fill" value="0"/>
68 <enum name="center" value="1"/>
69 </attr>
70
Qiwen Zhao1a874e22015-06-24 20:38:22 +000071 <attr name="tabMinWidth" format="dimension" />
72 <attr name="tabMaxWidth" format="dimension" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070073
Qiwen Zhao1a874e22015-06-24 20:38:22 +000074 <attr name="tabTextAppearance" format="reference" />
75 <attr name="tabSelectedTextColor" format="color" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070076
Qiwen Zhao1a874e22015-06-24 20:38:22 +000077 <attr name="tabPaddingStart" format="dimension" />
78 <attr name="tabPaddingTop" format="dimension" />
79 <attr name="tabPaddingEnd" format="dimension" />
80 <attr name="tabPaddingBottom" format="dimension" />
81 <attr name="tabPadding" format="dimension" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070082 </declare-styleable>
83
84 <declare-styleable name="CoordinatorLayout">
85 <!-- A reference to an array of integers representing the
86 locations of horizontal keylines in dp from the starting edge.
87 Child views can refer to these keylines for alignment using
88 layout_keyline="index" where index is a 0-based index into
89 this array. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +000090 <attr name="keylines" format="reference" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070091 </declare-styleable>
92
93 <declare-styleable name="CoordinatorLayout_LayoutParams">
Qiwen Zhao1a874e22015-06-24 20:38:22 +000094 <attr name="android:layout_gravity" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070095 <!-- The class name of a Behavior class defining special runtime behavior
96 for this child view. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +000097 <attr name="layout_behavior" format="string" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -070098 <!-- The id of an anchor view that this view should position relative to. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +000099 <attr name="layout_anchor" format="reference" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700100 <!-- The index of a keyline this view should position relative to.
101 android:layout_gravity will affect how the view aligns to the
102 specified keyline. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000103 <attr name="layout_keyline" format="integer" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700104
105 <!-- Specifies how an object should position relative to an anchor, on both the X and Y axes,
106 within its parent's bounds. -->
107 <attr name="layout_anchorGravity">
108 <!-- Push object to the top of its container, not changing its size. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000109 <flag name="top" value="0x30" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700110 <!-- Push object to the bottom of its container, not changing its size. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000111 <flag name="bottom" value="0x50" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700112 <!-- Push object to the left of its container, not changing its size. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000113 <flag name="left" value="0x03" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700114 <!-- Push object to the right of its container, not changing its size. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000115 <flag name="right" value="0x05" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700116 <!-- Place object in the vertical center of its container, not changing its size. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000117 <flag name="center_vertical" value="0x10" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700118 <!-- Grow the vertical size of the object if needed so it completely fills its container. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000119 <flag name="fill_vertical" value="0x70" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700120 <!-- Place object in the horizontal center of its container, not changing its size. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000121 <flag name="center_horizontal" value="0x01" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700122 <!-- Grow the horizontal size of the object if needed so it completely fills its container. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000123 <flag name="fill_horizontal" value="0x07" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700124 <!-- Place the object in the center of its container in both the vertical and horizontal axis, not changing its size. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000125 <flag name="center" value="0x11" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700126 <!-- Grow the horizontal and vertical size of the object if needed so it completely fills its container. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000127 <flag name="fill" value="0x77" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700128 <!-- Additional option that can be set to have the top and/or bottom edges of
129 the child clipped to its container's bounds.
130 The clip will be based on the vertical gravity: a top gravity will clip the bottom
131 edge, a bottom gravity will clip the top edge, and neither will clip both edges. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000132 <flag name="clip_vertical" value="0x80" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700133 <!-- Additional option that can be set to have the left and/or right edges of
134 the child clipped to its container's bounds.
135 The clip will be based on the horizontal gravity: a left gravity will clip the right
136 edge, a right gravity will clip the left edge, and neither will clip both edges. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000137 <flag name="clip_horizontal" value="0x08" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700138 <!-- Push object to the beginning of its container, not changing its size. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000139 <flag name="start" value="0x00800003" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700140 <!-- Push object to the end of its container, not changing its size. -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000141 <flag name="end" value="0x00800005" />
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700142 </attr>
143 </declare-styleable>
Filip Gruszczynskib532c512015-03-20 13:38:23 -0700144
145 <declare-styleable name="TextInputLayout">
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000146 <attr name="hintTextAppearance" format="reference" />
Filip Gruszczynskib532c512015-03-20 13:38:23 -0700147 <!-- The hint to display in the floating label -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000148 <attr name="android:hint" />
Filip Gruszczynskib532c512015-03-20 13:38:23 -0700149 <!-- Whether the layout is laid out as if an error will be displayed -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000150 <attr name="errorEnabled" format="boolean" />
Filip Gruszczynskib532c512015-03-20 13:38:23 -0700151 <!-- TextAppearance of any error message displayed -->
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000152 <attr name="errorTextAppearance" format="reference" />
Filip Gruszczynskib532c512015-03-20 13:38:23 -0700153 </declare-styleable>
154
155 <declare-styleable name="SnackbarLayout">
Qiwen Zhao1a874e22015-06-24 20:38:22 +0000156 <attr name="android:maxWidth" />
157 <attr name="maxActionInlineWidth" format="dimension" />
Filip Gruszczynskib532c512015-03-20 13:38:23 -0700158 </declare-styleable>
159
Qiwen Zhao03c19ce2015-03-09 12:01:13 -0700160</resources>
161