1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
|
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<declare-styleable name="lbBaseGridView">
<!-- Allow DPAD key to navigate out at the front of the View (where position = 0),
default is false -->
<attr name="focusOutFront" format="boolean" />
<!-- Allow DPAD key to navigate out at the end of the view, default is false -->
<attr name="focusOutEnd" format="boolean" />
<!-- Defining margin between two items horizontally -->
<attr name="horizontalMargin" format="dimension" />
<!-- Defining margin between two items vertically -->
<attr name="verticalMargin" format="dimension" />
<!-- Defining gravity of child view -->
<attr name="android:gravity" />
</declare-styleable>
<declare-styleable name="lbHorizontalGridView">
<!-- Defining height of each row of HorizontalGridView -->
<attr name="rowHeight" format="dimension" >
<enum name="wrap_content" value="-2" />
</attr>
<!-- Defining number of rows -->
<attr name="numberOfRows" format="integer" />
</declare-styleable>
<declare-styleable name="lbVerticalGridView">
<!-- Defining width of each column of VerticalGridView -->
<attr name="columnWidth" format="dimension" >
<enum name="wrap_content" value="-2" />
</attr>
<!-- Defining number of columns -->
<attr name="numberOfColumns" format="integer" />
</declare-styleable>
<declare-styleable name="lbBaseCardView">
<!-- Defines the type of the card layout -->
<attr name="cardType" format="enum">
<!-- A simple card layout with a single layout region. -->
<enum name="mainOnly" value="0" />
<!-- A card layout with two layout regions: a main area which is
always visible, and an info region that appears over the lower
area of the main region. -->
<enum name="infoOver" value="1" />
<!-- A card layout with two layout regions: a main area which is
always visible, and an info region that appears below the main
region. -->
<enum name="infoUnder" value="2" />
<!-- A card layout with three layout regions: a main area which is
always visible, an info region that appears below the main
region, and an extra region that appears below the info region
after a small delay. -->
<enum name="infoUnderWithExtra" value="3" />
</attr>
<!-- Defines when the info region of a card layout is displayed. -->
<attr name="infoVisibility" format="enum">
<!-- Always display the info region. -->
<enum name="always" value="0"/>
<!-- Display the info region only when activated. -->
<enum name="activated" value="1"/>
<!-- Display the info region only when selected. -->
<enum name="selected" value="2"/>
</attr>
<!-- Defines when the extra region of a card layout is displayed.
Depends on infoVisibility, meaning the extra region never displays
if the info region is not displayed as well. -->
<attr name="extraVisibility" format="enum">
<!-- Always display the extra region. -->
<enum name="always" value="0"/>
<!-- Display the extra region only when activated. -->
<enum name="activated" value="1"/>
<!-- Display the extra region only when selected. -->
<enum name="selected" value="2"/>
</attr>
<!-- Defines the delay in milliseconds before the selection animation
runs for a card layout. -->
<attr name="selectedAnimationDelay" format="integer" />
<!-- Defines the duration in milliseconds of the selection animation for
a card layout. -->
<attr name="selectedAnimationDuration" format="integer" />
<!-- Defines the duration in milliseconds of the activated animation for
a card layout. -->
<attr name="activatedAnimationDuration" format="integer" />
</declare-styleable>
<!-- This is the basic set of layout attributes for elements within a card
layout. These attributes are specified with the rest of an elements's
normal attributes. -->
<declare-styleable name="lbBaseCardView_Layout">
<!-- The card layout region defined by this element. At most one of
element of each type should be specified as an immediate child of
the card layout. -->
<attr name="layout_viewType" format="enum">
<!-- The main region of the card. -->
<enum name="main" value="0"/>
<!-- The info region of the card. -->
<enum name="info" value="1"/>
<!-- The extra region of the card. -->
<enum name="extra" value="2"/>
</attr>
</declare-styleable>
<declare-styleable name="lbImageCardView">
<attr name="infoAreaBackground" format="reference|color"/>
</declare-styleable>
<declare-styleable name="lbSearchOrbView">
<!-- Defining icon of the search affordance -->
<attr name="searchOrbIcon" format="reference"/>
<!-- Defining icon tint color of the search affordance -->
<attr name="searchOrbIconColor" format="reference|color"/>
<!-- Defining color of the search affordance -->
<attr name="searchOrbColor" format="reference|color" />
<!-- Defining pulse color of the search affordance -->
<attr name="searchOrbBrightColor" format="reference|color" />
</declare-styleable>
<declare-styleable name="lbPlaybackControlsActionIcons">
<attr name="play" format="reference"/>
<attr name="pause" format="reference"/>
<attr name="fast_forward" format="reference"/>
<attr name="rewind" format="reference"/>
<attr name="skip_next" format="reference"/>
<attr name="skip_previous" format="reference"/>
<attr name="thumb_up_outline" format="reference"/>
<attr name="thumb_up" format="reference"/>
<attr name="thumb_down_outline" format="reference"/>
<attr name="thumb_down" format="reference"/>
<attr name="repeat" format="reference"/>
<attr name="repeat_one" format="reference"/>
<attr name="shuffle" format="reference"/>
<attr name="high_quality" format="reference"/>
<attr name="closed_captioning" format="reference"/>
</declare-styleable>
<declare-styleable name="LeanbackTheme">
<!-- left padding of BrowseFragment, RowsFragment, DetailsFragment -->
<attr name="browsePaddingLeft" format="dimension" />
<!-- right padding of BrowseFragment, RowsFragment, DetailsFragment -->
<attr name="browsePaddingRight" format="dimension" />
<!-- top padding of BrowseFragment -->
<attr name="browsePaddingTop" format="dimension" />
<!-- bottom padding of BrowseFragment -->
<attr name="browsePaddingBottom" format="dimension" />
<!-- start margin of RowsFragment inside BrowseFragment when HeadersFragment is visible -->
<attr name="browseRowsMarginStart" format="dimension" />
<!-- top margin of RowsFragment inside BrowseFragment when BrowseFragment title is visible -->
<attr name="browseRowsMarginTop" format="dimension" />
<!-- fading edge length of start of browse row when HeadersFragment is visible -->
<attr name="browseRowsFadingEdgeLength" format="dimension" />
<!-- BrowseFragment Title text style -->
<attr name="browseTitleTextStyle" format="reference" />
<!-- BrowseFragment Title icon style -->
<attr name="browseTitleIconStyle" format="reference" />
<!-- BrowseFragment TitleView style -->
<attr name="browseTitleViewStyle" format="reference" />
<!-- vertical grid style inside HeadersFragment -->
<attr name="headersVerticalGridStyle" format="reference" />
<!-- header style inside HeadersFragment -->
<attr name="headerStyle" format="reference" />
<!-- vertical grid style inside RowsFragment -->
<attr name="rowsVerticalGridStyle" format="reference" />
<!-- horizontal grid style inside a row -->
<attr name="rowHorizontalGridStyle" format="reference" />
<!-- header style inside a row -->
<attr name="rowHeaderStyle" format="reference" />
<!-- hover card title style -->
<attr name="rowHoverCardTitleStyle" format="reference" />
<!-- hover card description style -->
<attr name="rowHoverCardDescriptionStyle" format="reference" />
<!-- CardView styles -->
<attr name="baseCardViewStyle" format="reference" />
<attr name="imageCardViewStyle" format="reference" />
<!-- for details overviews -->
<attr name="detailsDescriptionTitleStyle" format="reference" />
<attr name="detailsDescriptionSubtitleStyle" format="reference" />
<attr name="detailsDescriptionBodyStyle" format="reference" />
<attr name="detailsActionButtonStyle" format="reference" />
<!-- for playback controls -->
<attr name="playbackControlsButtonStyle" format="reference" />
<attr name="playbackControlsTimeStyle" format="reference" />
<!-- style for a vertical grid of items -->
<attr name="itemsVerticalGridStyle" format="reference" />
<!-- for messages in the error fragment -->
<attr name="errorMessageStyle" format="reference" />
<!-- Default colors -->
<attr name="defaultBrandColor" format="reference|color" />
<attr name="defaultSearchColor" format="reference|color" />
<!-- Default color that search orb pulses to. If not set, this color is determined programatically based on the defaultSearchColor -->
<attr name="defaultSearchBrightColor" format="reference|color" />
<!-- Style for searchOrb -->
<attr name="searchOrbViewStyle" format="reference"/>
<attr name="defaultSearchIcon" format="reference" />
<attr name="playbackProgressPrimaryColor" format="reference|color" />
<attr name="playbackControlsIconHighlightColor" format="reference|color" />
<attr name="playbackControlsActionIcons" format="reference" />
<!-- Default color for dimmed views. -->
<attr name="overlayDimMaskColor" format="color" />
<!-- Default level of dimming for active views. -->
<attr name="overlayDimActiveLevel" format="fraction" />
<!-- Default level of dimming for dimmed views. -->
<attr name="overlayDimDimmedLevel" format="fraction" />
</declare-styleable>
</resources>
|