Anthony Chen | 775bb5d | 2017-09-14 14:09:13 -0700 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2017 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations 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 Chen | ab07f45 | 2017-09-25 15:35:17 -0700 | [diff] [blame] | 23 | |
| 24 | <!-- The configurable attributes in PagedListView. --> |
| 25 | <declare-styleable name="PagedListView"> |
Anthony Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 26 | <!-- Whether or not to offset the list view by the width of scroll bar. Setting this to |
Dean Harding | 5c0c8c2 | 2017-12-01 13:08:28 -0800 | [diff] [blame] | 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.--> |
Anthony Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 29 | <attr name="offsetScrollBar" format="boolean" /> |
Dean Harding | 5c0c8c2 | 2017-12-01 13:08:28 -0800 | [diff] [blame] | 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> |
Anthony Chen | 834be27 | 2018-01-17 15:45:22 -0800 | [diff] [blame] | 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" /> |
Anthony Chen | ab07f45 | 2017-09-25 15:35:17 -0700 | [diff] [blame] | 49 | <!-- Whether to display the scrollbar or not. Defaults to true. --> |
| 50 | <attr name="scrollBarEnabled" format="boolean" /> |
Anthony Chen | cb48843 | 2018-01-08 14:29:53 -0800 | [diff] [blame] | 51 | <!-- The top margin before the scroll bar is drawn. --> |
| 52 | <attr name="scrollBarTopMargin" format="dimension" /> |
Anthony Chen | 42d4bf0 | 2018-01-17 16:13:44 -0800 | [diff] [blame] | 53 | <!-- 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 Chen | ab07f45 | 2017-09-25 15:35:17 -0700 | [diff] [blame] | 57 | <!-- 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 Harding | 5c0c8c2 | 2017-12-01 13:08:28 -0800 | [diff] [blame] | 68 | <!-- 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 Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 70 | <attr name="listEndMargin" format="dimension" /> |
Yao, Yuxing | 44755b6 | 2017-10-30 16:25:09 -0700 | [diff] [blame] | 71 | <!-- An optional spacing between items in the list --> |
| 72 | <attr name="itemSpacing" format="dimension" /> |
Anthony Chen | b58e241 | 2017-10-24 09:14:41 -0700 | [diff] [blame] | 73 | <!-- 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 Chen | 82b733f | 2018-01-09 10:25:37 -0800 | [diff] [blame] | 77 | <!-- 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 Chen | 821d290 | 2017-10-03 15:26:22 -0700 | [diff] [blame] | 80 | </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 Chen | ab07f45 | 2017-09-25 15:35:17 -0700 | [diff] [blame] | 101 | </declare-styleable> |
Anthony Chen | 82b733f | 2018-01-09 10:25:37 -0800 | [diff] [blame] | 102 | |
| 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 Chen | 775bb5d | 2017-09-14 14:09:13 -0700 | [diff] [blame] | 109 | </resources> |