• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2018 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    <!-- Attributes for the ClickThroughToolbar. -->
18    <declare-styleable name="ClickThroughToolbar">
19        <!-- Whether or not clicks on this toolbar will pass through to an underlying view. This
20             value is false by default. -->
21        <attr name="clickThrough" format="boolean"/>
22    </declare-styleable>
23
24    <!-- Attributes for the ControlBar. -->
25    <declare-styleable name="ControlBar">
26        <!-- The number of horizontal slots. The minimum number is 3. -->
27        <attr name="columns" format="integer" />
28        <!-- Whether the overflow button enabled or not. -->
29        <attr name="enableOverflow" format="boolean" />
30    </declare-styleable>
31
32    <!-- Attributes for grid items. -->
33    <declare-styleable name="GridItems">
34        <!-- The preferred TextAppearance for the primary text of grid items. -->
35        <attr name="textAppearanceGridItem" format="reference" />
36        <!-- The preferred TextAppearance for the secondary text of grid items. -->
37        <attr name="textAppearanceGridItemSecondary" format="reference" />
38    </declare-styleable>
39
40    <!-- Attributes for tab layout. -->
41    <declare-styleable name="CarTabLayout">
42        <attr name="tabPaddingX" format="reference|dimension"/>
43        <attr name="tabFlexibleLayout" format="reference|boolean"/>
44        <attr name="tabItemLayout" format="reference"/>
45    </declare-styleable>
46
47    <declare-styleable name="PagedRecyclerView">
48        <!-- Whether to include a gutter to the start, end or both sides of the list view items.
49             The gutter width will be the width of the scrollbar, and by default will be set to
50             both. -->
51        <attr name="gutter" format="enum">
52            <!-- No gutter on either side, the list view items will extend the full width of the
53                 PagedRecyclerView. -->
54            <enum name="none" value="0" />
55            <!-- Include a gutter on the start side only (i.e. the side with the scrollbar). -->
56            <enum name="start" value="1" />
57            <!-- Include a gutter on the end side only (i.e. the opposite side to the
58                 scrollbar). -->
59            <enum name="end" value="2" />
60            <!-- Include a gutter on both sides of the list view items. -->
61            <enum name="both" value="3" />
62        </attr>
63        <!-- Position of the scrollbar. Default to left. -->
64        <attr name="scrollBarPosition" format="enum">
65            <!-- Position scrollbar on the left side of the screen -->
66            <enum name="start" value="0" />
67            <!-- Position scrollbar on the right side of the screen -->
68            <enum name="end" value="1" />
69        </attr>
70        <!-- Whether to display the Scroll Bar or not. Defaults to true. If this is set to false,
71             the PagedRecyclerView will behave exactly like the RecyclerView. -->
72        <attr name="scrollBarEnabled" format="boolean" />
73        <!-- Whether to place the scrollbar z-index above the recycler view. Defaults to
74             true. -->
75        <attr name="scrollBarAboveRecyclerView" format="boolean" />
76        <!-- Width of the scrollbar container. -->
77        <attr name="scrollBarContainerWidth" format="dimension" />
78        <!-- Custom Scrollbar class path -->
79        <attr name="scrollBarCustomClass" format="string" />
80    </declare-styleable>
81
82    <declare-styleable name="PagedRecyclerViewTheme">
83        <attr name="pagedRecyclerViewStyle" format="reference" />
84    </declare-styleable>
85
86    <declare-styleable name="CrossfadeImageView">
87        <attr name="align_horizontal" format="enum">
88            <enum name="center" value="0"/>
89            <enum name="left" value="1"/>
90            <enum name="right" value="2"/>
91        </attr>
92    </declare-styleable>
93
94    <!-- Attributes for UX restrictions compliant Button. -->
95    <declare-styleable name="UxrButton">
96        <attr name="carUxRestrictions">
97            <!-- Values are copied from android.car.drivingstate.CarUxRestrictions. Note:
98            UX_RESTRICTIONS_BASELINE is not allowed here because it's useless and confusing. -->
99            <flag name="UX_RESTRICTIONS_NO_DIALPAD" value="1"/>
100            <flag name="UX_RESTRICTIONS_NO_FILTERING" value="2"/>
101            <flag name="UX_RESTRICTIONS_LIMIT_STRING_LENGTH" value="4"/>
102            <flag name="UX_RESTRICTIONS_NO_KEYBOARD" value="8"/>
103            <flag name="UX_RESTRICTIONS_NO_VIDEO" value="16"/>
104            <flag name="UX_RESTRICTIONS_LIMIT_CONTENT" value="32"/>
105            <flag name="UX_RESTRICTIONS_NO_SETUP" value="64"/>
106            <flag name="UX_RESTRICTIONS_NO_TEXT_MESSAGE" value="128"/>
107            <flag name="UX_RESTRICTIONS_NO_VOICE_TRANSCRIPTION" value="256"/>
108            <flag name="UX_RESTRICTIONS_FULLY_RESTRICTED" value="511"/>
109        </attr>
110        <attr name="state_ux_restricted" format="boolean" />
111    </declare-styleable>
112
113    <declare-styleable name="BackgroundImageView">
114        <!-- Sets a scale to be applied on top of the scaling that was used to fit the image to the frame of the view. Defaults to 1.05 -->
115        <attr name="imageAdditionalScale" format="float"/>
116    </declare-styleable>
117    <!-- Attribute for specifying a default style for all BackgroundImageViews -->
118    <attr name="backgroundImageViewStyle" format="reference"/>
119</resources>
120