1<?xml version="1.0" encoding="utf-8"?> 2<!-- Copyright (C) 2017 The Android Open Source Project 3 4Licensed under the Apache License, Version 2.0 (the "License"); 5you may not use this file except in compliance with the License. 6You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10Unless required by applicable law or agreed to in writing, software 11distributed under the License is distributed on an "AS IS" BASIS, 12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13See the License for the specific language governing permissions and 14limitations under the License. 15--> 16<resources> 17 <!-- The configurable attributes for a ColumnCardView. --> 18 <declare-styleable name="ColumnCardView"> 19 <!-- The number of columns that this ColumnCardView should span across. This value will 20 determine the width of the card. --> 21 <attr name="columnSpan" format="integer" /> 22 </declare-styleable> 23 24 <!-- The configurable attributes in PagedListView. --> 25 <declare-styleable name="PagedListView"> 26 <!-- Whether or not to offset the list view by the width of scroll bar. Setting this to 27 true will ensure that any views within the list will not overlap the scroll bar. 28 Deprecated: use gutter instead. If gutter is specified, this value is ignored.--> 29 <attr name="offsetScrollBar" format="boolean" /> 30 <!-- Whether to include a gutter to the start, end or both sides of the list view items. 31 The gutter width will be the width of the scrollbar, and by default will be set to 32 both. --> 33 <attr name="gutter" format="enum"> 34 <!-- No gutter on either side, the list view items will extend the full width of the 35 PagedListView. --> 36 <enum name="none" value="0" /> 37 <!-- Include a gutter on the start side only (i.e. the side with the scrollbar). --> 38 <enum name="start" value="1" /> 39 <!-- Include a gutter on the end side only (i.e. the opposite side to the 40 scrollbar). --> 41 <enum name="end" value="2" /> 42 <!-- Include a gutter on both sides of the list view items. --> 43 <enum name="both" value="3" /> 44 </attr> 45 <!-- The size of the gutter that is either at the start, end or both sides of the 46 items in the PagedListView. There is a default value that changes per screen size if 47 a gutter size is not explicitly set.--> 48 <attr name="gutterSize" format="dimension" /> 49 <!-- Whether to display the scrollbar or not. Defaults to true. --> 50 <attr name="scrollBarEnabled" format="boolean" /> 51 <!-- Sets the color of the scroll bar. This color only affects the thumb of the scroll bar; 52 the up/down buttons are unaffected. To set these, use upButtonIcon and downButtonIcon 53 respectively. --> 54 <attr name="scrollBarColor" format="color" /> 55 <!-- The top margin before the scroll bar is drawn. --> 56 <attr name="scrollBarTopMargin" format="dimension" /> 57 <!-- The width of the container that will hold the scrollbar. The scrollbar is centered 58 within this value. If this value is not explicitly set, the scrollbar centers itself 59 within the car_margin value. --> 60 <attr name="scrollBarContainerWidth" format="dimension" /> 61 <!-- Whether or not to show a vertical diving line between each item of the list. Divider 62 after the last item (LinearLayoutManager) or row (GridLayoutManager) will not be shown 63 but there will be an offset for divider space. --> 64 <attr name="showPagedListViewDivider" format="boolean" /> 65 <!-- An optional id that specifies a child View whose starting edge will be used to 66 determine the start position of the dividing line. --> 67 <attr name="alignDividerStartTo" format="reference" /> 68 <!-- An optional id that specifies a child View whose ending edge will be used to 69 determine the end position of the dividing line. --> 70 <attr name="alignDividerEndTo" format="reference" /> 71 <!-- A starting margin before the drawing of the dividing line. This margin will be an 72 offset from the view specified by "alignDividerStartTo" if given. --> 73 <attr name="dividerStartMargin" format="dimension" /> 74 <!-- An ending margin before the drawing of the dividing line. This margin will be an 75 offset from the view specified by "alignDividerEndTo" if given. --> 76 <attr name="dividerEndMargin" format="dimension" /> 77 <!-- The color of the list divider. --> 78 <attr name="listDividerColor" format="color" /> 79 <!-- The width of the margin on the right side of the list. 80 Deprecated: use gutter instead. If gutter is specified, this value is ignored.--> 81 <attr name="listEndMargin" format="dimension" /> 82 <!-- An optional vertical spacing between items in the list. In GridLayoutManager items in 83 the last row would still have spacing at bottom. --> 84 <attr name="itemSpacing" format="dimension" /> 85 <!-- The icon to be used for the up button of the scroll bar. --> 86 <attr name="upButtonIcon" format="reference" /> 87 <!-- The icon to be used for the down button of the scroll bar. --> 88 <attr name="downButtonIcon" format="reference" /> 89 <!-- The amount of space before the first item in the list view. This space is 90 scrollable with the contents of the list. --> 91 <attr name="listContentTopOffset" format="reference" /> 92 <!-- Vertically center the list contents when the number of items in the list does not take 93 up the full height of the PagedListView. This value is "false" by default. --> 94 <attr name="verticallyCenterListContent" format="boolean" /> 95 <!-- Specifies how the PagedListView should respond to day/night mode events. The values 96 here should match the DayNightStyle @interface. See that class for more 97 information. --> 98 <attr name="dayNightStyle" format="enum"> 99 <!-- Automatically changes colors for day/night, assuming the content is light during 100 the day and dark during the night. This is the default behavior. --> 101 <enum name="auto" value="0" /> 102 <!-- Automatically changes colors for day/night, with the colors being inverted from 103 "auto". --> 104 <enum name="auto_inverse" value="1" /> 105 <!-- Fixes the colors to be light colored. --> 106 <enum name="always_light" value="2" /> 107 <!-- Fixes the colors to be dark colored. --> 108 <enum name="always_dark" value="3" /> 109 <!-- Fixes the colors to be light colored. 110 Deprecated: use "always_light" instead. --> 111 <enum name="force_night" value="4" /> 112 <!-- Fixes the colors to be dark colored. 113 Deprecated: use "always_dark" instead. --> 114 <enum name="force_day" value="5" /> 115 </attr> 116 </declare-styleable> 117 118 <!-- The configuration for modifying the ListItem. These ListItems are only intended to be used 119 within a PagedListView. --> 120 <declare-styleable name="ListItem"> 121 <!-- The background color of each ListItem. --> 122 <attr name="listItemBackgroundColor" format="color"/> 123 <!-- The TextAppearance of the title text in the ListItem. --> 124 <attr name="listItemTitleTextAppearance" format="reference"/> 125 <!-- The TextAppearance of the body text in the ListItem. --> 126 <attr name="listItemBodyTextAppearance" format="reference"/> 127 <!-- The TextAppearance of the text in the Subheader ListItem. --> 128 <attr name="listItemSubheaderTextAppearance" format="reference"/> 129 </declare-styleable> 130 131 <!-- The attributes for customizing the appearance of the hamburger and back arrow in the 132 drawer. --> 133 <declare-styleable name="DrawerArrowDrawable"> 134 <!-- The color of the arrow. --> 135 <attr name="carArrowColor" format="color"/> 136 <!-- Whether the arrow will animate when switches directions. --> 137 <attr name="carArrowAnimate" format="boolean"/> 138 <!-- The size of the arrow's bounding box. --> 139 <attr name="carArrowSize" format="dimension"/> 140 <!-- The length of the top and bottom bars that merge to form the point of the arrow. --> 141 <attr name="carArrowHeadLength" format="dimension"/> 142 <!-- The length of arrow shaft. --> 143 <attr name="carArrowShaftLength" format="dimension"/> 144 <!-- The thickness of each of the bars that form the arrow. --> 145 <attr name="carArrowThickness" format="dimension"/> 146 <!-- The spacing between the menu bars (i.e. the "hamburger" icon). --> 147 <attr name="carMenuBarSpacing" format="dimension"/> 148 <!-- The size of the menu bars (i.e. the "hamburger" icon). --> 149 <attr name="carMenuBarThickness" format="dimension"/> 150 </declare-styleable> 151 152 <!-- Attributes for the ClickThroughToolbar. --> 153 <declare-styleable name="ClickThroughToolbar"> 154 <!-- Whether or not clicks on this toolbar will pass through to an underlying view. This 155 value is false by default. --> 156 <attr name="clickThrough" format="boolean"/> 157 </declare-styleable> 158 159 <!-- Attributes for the ActionBar. --> 160 <declare-styleable name="ActionBar"> 161 <!-- The number of horizontal slots. The minimum number is 3. --> 162 <attr name="columns" format="integer" /> 163 </declare-styleable> 164 165 <!-- Attributes specifically related to modifying car themes. --> 166 <declare-styleable name="CarTheme"> 167 <!-- ================== --> 168 <!-- Theming Attributes --> 169 <!-- ================== --> 170 <eat-comment /> 171 172 <!-- Attribute for specifying the styling of dialogs within a car theme. Note: this is 173 different from the style that is applied to framework/AppCompat dialogs. This will 174 only affect the styling of dialogs provided by the car support library. --> 175 <attr name="carDialogTheme" format="reference"/> 176 177 <!-- An attribute for specifying a style that modifies the look of a PagedListView. --> 178 <attr name="pagedListViewStyle" format="reference"/> 179 180 <!-- ================= --> 181 <!-- Dialog Attributes --> 182 <!-- ================= --> 183 <eat-comment /> 184 185 <!-- The background color of a dialog. --> 186 <attr name="dialogBackgroundColor" format="color"/> 187 188 <!-- The style of the title text in a CarAlertDialog. --> 189 <attr name="dialogTitleStyle" format="reference"/> 190 <!-- The style of the body text in a CarAlertDialog or the list items in a CarListDialog. --> 191 <attr name="dialogBodyStyle" format="reference"/> 192 <!-- The style of the action buttons in a CarAlertDialog. --> 193 <attr name="dialogButtonStyle" format="reference"/> 194 <!-- A theme for the styling of the list in a CarListDialog. --> 195 <attr name="dialogListTheme" format="reference"/> 196 197 <!-- ================= --> 198 <!-- Drawer Attributes --> 199 <!-- ================= --> 200 <eat-comment /> 201 202 <!-- The background color of the drawer. --> 203 <attr name="drawerBackgroundColor" format="color"/> 204 <!-- The color of the header text and arrow in the drawer. --> 205 <attr name="drawerHeaderColor" format="color"/> 206 <!-- The ripple color for items in the drawer. --> 207 <attr name="drawerRippleColor" format="color"/> 208 <!-- The TextAppearance of each item's title text in the drawer list. --> 209 <attr name="drawerItemTitleTextAppearance" format="reference"/> 210 <!-- The TextAppearance of each item's body text in the drawer list. --> 211 <attr name="drawerItemBodyTextAppearance" format="reference"/> 212 <!-- The styling of the list in the drawer. --> 213 <attr name="drawerListStyle" format="reference"/> 214 215 </declare-styleable> 216</resources> 217