blob: 8b32b243658bc408363c41eabb0106520712407c [file] [log] [blame]
Anthony Chen775bb5d2017-09-14 14:09:13 -07001<?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>
Anthony Chenab07f452017-09-25 15:35:17 -070023
24 <!-- The configurable attributes in PagedListView. -->
25 <declare-styleable name="PagedListView">
Anthony Chen821d2902017-10-03 15:26:22 -070026 <!-- Whether or not to offset the list view by the width of scroll bar. Setting this to
Dean Harding5c0c8c22017-12-01 13:08:28 -080027 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.-->
Anthony Chen821d2902017-10-03 15:26:22 -070029 <attr name="offsetScrollBar" format="boolean" />
Dean Harding5c0c8c22017-12-01 13:08:28 -080030 <!-- 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>
Anthony Chen834be272018-01-17 15:45:22 -080045 <!-- 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" />
Anthony Chenab07f452017-09-25 15:35:17 -070049 <!-- Whether to display the scrollbar or not. Defaults to true. -->
50 <attr name="scrollBarEnabled" format="boolean" />
Anthony Chencb488432018-01-08 14:29:53 -080051 <!-- The top margin before the scroll bar is drawn. -->
52 <attr name="scrollBarTopMargin" format="dimension" />
Anthony Chen42d4bf02018-01-17 16:13:44 -080053 <!-- The width of the container that will hold the scrollbar. The scrollbar is centered
54 within this value. If this value is not explicitly set, the scrollbar centers itself
55 within the car_margin value. -->
56 <attr name="scrollBarContainerWidth" format="dimension" />
Anthony Chenab07f452017-09-25 15:35:17 -070057 <!-- Whether or not to show a diving line between each item of the list. -->
58 <attr name="showPagedListViewDivider" format="boolean" />
59 <!-- An optional id that specifies a child View whose starting edge will be used to
60 determine the start position of the dividing line. -->
61 <attr name="alignDividerStartTo" format="reference" />
62 <!-- An optional id that specifies a child View whose ending edge will be used to
63 determine the end position of the dividing line. -->
64 <attr name="alignDividerEndTo" format="reference" />
65 <!-- A starting margin before the drawing of the dividing line. This margin will be an
66 offset from the view specified by "alignDividerStartTo" if given. -->
67 <attr name="dividerStartMargin" format="dimension" />
Dean Harding5c0c8c22017-12-01 13:08:28 -080068 <!-- The width of the margin on the right side of the list.
69 Deprecated: use gutter instead. If gutter is specified, this value is ignored.-->
Anthony Chen821d2902017-10-03 15:26:22 -070070 <attr name="listEndMargin" format="dimension" />
Yao, Yuxing44755b62017-10-30 16:25:09 -070071 <!-- An optional spacing between items in the list -->
72 <attr name="itemSpacing" format="dimension" />
Anthony Chenb58e2412017-10-24 09:14:41 -070073 <!-- The icon to be used for the up button of the scroll bar. -->
74 <attr name="upButtonIcon" format="reference" />
75 <!-- The icon to be used for the down button of the scroll bar. -->
76 <attr name="downButtonIcon" format="reference" />
Anthony Chen82b733f2018-01-09 10:25:37 -080077 <!-- The amount of space before the first item in the list view. This space is
78 scrollable with the contents of the list. -->
79 <attr name="listContentTopOffset" format="reference" />
Anthony Chen821d2902017-10-03 15:26:22 -070080 </declare-styleable>
81
82 <!-- The attributes for customizing the appearance of the hamburger and back arrow in the
83 drawer. -->
84 <declare-styleable name="DrawerArrowDrawable">
85 <!-- The color of the arrow. -->
86 <attr name="carArrowColor" format="color"/>
87 <!-- Whether the arrow will animate when switches directions. -->
88 <attr name="carArrowAnimate" format="boolean"/>
89 <!-- The size of the arrow's bounding box. -->
90 <attr name="carArrowSize" format="dimension"/>
91 <!-- The length of the top and bottom bars that merge to form the point of the arrow. -->
92 <attr name="carArrowHeadLength" format="dimension"/>
93 <!-- The length of arrow shaft. -->
94 <attr name="carArrowShaftLength" format="dimension"/>
95 <!-- The thickness of each of the bars that form the arrow. -->
96 <attr name="carArrowThickness" format="dimension"/>
97 <!-- The spacing between the menu bars (i.e. the "hamburger" icon). -->
98 <attr name="carMenuBarSpacing" format="dimension"/>
99 <!-- The size of the menu bars (i.e. the "hamburger" icon). -->
100 <attr name="carMenuBarThickness" format="dimension"/>
Anthony Chenab07f452017-09-25 15:35:17 -0700101 </declare-styleable>
Anthony Chen82b733f2018-01-09 10:25:37 -0800102
103 <!-- Attributes for the ClickThroughToolbar. -->
104 <declare-styleable name="ClickThroughToolbar">
105 <!-- Whether or not clicks on this toolbar will pass through to an underlying view. This
106 value is false by default. -->
107 <attr name="clickThrough" format="boolean"/>
108 </declare-styleable>
Anthony Chen775bb5d2017-09-14 14:09:13 -0700109</resources>