1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- 3 Copyright (C) 2014 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18 <resources xmlns:android="http://schemas.android.com/apk/res/android"> 19 <style name="TextAppearance.LeanbackBase" parent="android:TextAppearance.Holo"> 20 </style> 21 <style name="TextAppearance.Leanback" parent="TextAppearance.LeanbackBase"> 22 <!-- Any text appearance overrides go here. --> 23 <item name="android:fontFamily">sans-serif-condensed</item> 24 </style> 25 26 <style name="TextAppearance.Leanback.Title" parent="TextAppearance.Leanback"> 27 <item name="android:fontFamily">sans-serif-light</item> 28 <item name="android:textSize">@dimen/lb_browse_title_text_size</item> 29 <item name="android:textColor">@color/lb_browse_title_color</item> 30 </style> 31 32 <style name="TextAppearance.Leanback.Header" parent="TextAppearance.Leanback"> 33 <item name="android:textSize">@dimen/lb_browse_header_text_size</item> 34 <item name="android:textColor">@color/lb_browse_header_color</item> 35 </style> 36 37 <style name="TextAppearance.Leanback.Header.Section"> 38 <item name="android:textColor">?defaultSectionHeaderColor</item> 39 <item name="android:textSize">@dimen/lb_browse_section_header_text_size</item> 40 </style> 41 42 <style name="TextAppearance.Leanback.Row.Header" parent="TextAppearance.Leanback.Header"> 43 </style> 44 45 <style name="TextAppearance.Leanback.SearchTextEdit" parent="TextAppearance.Leanback"> 46 <item name="android:textSize">@dimen/lb_search_bar_text_size</item> 47 </style> 48 49 <style name="TextAppearance.Leanback.DetailsDescriptionTitle"> 50 <item name="android:textSize">@dimen/lb_details_description_title_text_size</item> 51 <item name="android:textColor">@color/lb_details_description_color</item> 52 <item name="android:fontFamily">sans-serif-light</item> 53 </style> 54 55 <style name="TextAppearance.Leanback.DetailsDescriptionSubtitle"> 56 <item name="android:textSize">@dimen/lb_details_description_subtitle_text_size</item> 57 <item name="android:textColor">@color/lb_details_description_color</item> 58 <item name="android:fontFamily">sans-serif</item> 59 </style> 60 61 <style name="TextAppearance.Leanback.DetailsDescriptionBody"> 62 <item name="android:textSize">@dimen/lb_details_description_body_text_size</item> 63 <item name="android:textColor">@color/lb_details_description_body_color</item> 64 <item name="android:fontFamily">sans-serif</item> 65 </style> 66 67 <style name="TextAppearance.Leanback.DetailsActionButton"> 68 <item name="android:textSize">@dimen/lb_action_text_size</item> 69 <item name="android:textColor">@color/lb_action_text_color</item> 70 <item name="android:textAllCaps">true</item> 71 </style> 72 73 <style name="TextAppearance.Leanback.PlaybackControlsTime"> 74 <item name="android:textSize">@dimen/lb_playback_controls_time_text_size</item> 75 <item name="android:textColor">@color/lb_playback_controls_time_text_color</item> 76 <item name="android:fontFamily">sans-serif</item> 77 </style> 78 79 <style name="TextAppearance.Leanback.PlaybackControlLabel"> 80 <item name="android:textSize">@dimen/lb_control_button_text_size</item> 81 <item name="android:textColor">@color/lb_control_button_text</item> 82 <item name="android:fontFamily">sans-serif</item> 83 </style> 84 85 <style name="TextAppearance.Leanback.ErrorMessage"> 86 <item name="android:textSize">@dimen/lb_error_message_text_size</item> 87 <item name="android:textColor">@color/lb_error_message</item> 88 <item name="android:fontFamily">sans-serif</item> 89 </style> 90 91 <style name="Widget.LeanbackBase" parent="android:Widget.Holo" /> 92 <style name="Widget.Leanback" parent="Widget.LeanbackBase" /> 93 94 <style name="Widget.Leanback.BaseCardViewStyle"> 95 <item name="cardForeground">@drawable/lb_card_foreground</item> 96 <item name="cardBackground">@color/lb_basic_card_bg_color</item> 97 </style> 98 99 <style name="Widget.Leanback.TitleView" > 100 <item name="android:paddingTop">?attr/browsePaddingTop</item> 101 <item name="android:paddingBottom">?attr/browsePaddingTop</item> 102 <item name="android:paddingStart">?attr/browsePaddingStart</item> 103 <item name="android:paddingEnd">?attr/browsePaddingEnd</item> 104 </style> 105 106 <style name="Widget.Leanback.ImageCardViewStyle" parent="Widget.Leanback.BaseCardViewStyle"> 107 <item name="cardType">infoUnder</item> 108 <item name="infoVisibility">activated</item> 109 <!-- In order to keep backward compatibility we have to create an icon on right. --> 110 <item name="lbImageCardViewType">Title|Content|IconOnRight</item> 111 <!-- Deprecated. Use 'Widget.Leanback.ImageCardView.InfoAreaStyle' instead. --> 112 <item name="infoAreaBackground">@null</item> 113 </style> 114 115 <style name="TextAppearance.Leanback.ImageCardView"> 116 </style> 117 118 <style name="Widget.Leanback.ImageCardView" /> 119 120 <style name="Widget.Leanback.ImageCardView.ImageStyle"> 121 <item name="android:layout_width">wrap_content</item> 122 <item name="android:layout_height">wrap_content</item> 123 <item name="android:adjustViewBounds">true</item> 124 <item name="android:contentDescription">@null</item> 125 <item name="android:scaleType">centerCrop</item> 126 <item name="layout_viewType">main</item> 127 </style> 128 129 <style name="Widget.Leanback.ImageCardView.InfoAreaStyle"> 130 <item name="android:layout_width">match_parent</item> 131 <item name="android:layout_height">wrap_content</item> 132 <item name="android:layout_centerHorizontal">true</item> 133 <item name="layout_viewType">info</item> 134 <item name="android:paddingBottom">@dimen/lb_basic_card_info_padding_bottom</item> 135 <item name="android:paddingEnd">@dimen/lb_basic_card_info_padding_horizontal</item> 136 <item name="android:paddingStart">@dimen/lb_basic_card_info_padding_horizontal</item> 137 <item name="android:paddingTop">@dimen/lb_basic_card_info_padding_top</item> 138 <item name="android:background">@color/lb_basic_card_info_bg_color</item> 139 </style> 140 141 <style name="TextAppearance.Leanback.ImageCardView.Title"> 142 <item name="android:textColor">@color/lb_basic_card_title_text_color</item> 143 <item name="android:textSize">@dimen/lb_basic_card_title_text_size</item> 144 </style> 145 146 <style name="Widget.Leanback.ImageCardView.TitleStyle"> 147 <item name="android:id">@id/title_text</item> 148 <item name="android:layout_width">match_parent</item> 149 <item name="android:layout_height">wrap_content</item> 150 <item name="android:maxLines">1</item> 151 <item name="android:layout_marginBottom">@dimen/lb_basic_card_info_text_margin</item> 152 <item name="android:textAlignment">viewStart</item> 153 <item name="android:ellipsize">end</item> 154 <item name="android:textAppearance">@style/TextAppearance.Leanback.ImageCardView.Title</item> 155 </style> 156 157 <style name="TextAppearance.Leanback.ImageCardView.Content"> 158 <item name="android:textColor">@color/lb_basic_card_content_text_color</item> 159 <item name="android:textSize">@dimen/lb_basic_card_content_text_size</item> 160 </style> 161 162 <style name="Widget.Leanback.ImageCardView.ContentStyle"> 163 <item name="android:id">@id/content_text</item> 164 <item name="android:layout_width">match_parent</item> 165 <item name="android:layout_height">wrap_content</item> 166 <item name="android:layout_alignParentStart">true</item> 167 <item name="android:layout_below">@+id/title_text</item> 168 <item name="android:layout_toStartOf">@+id/extra_badge</item> 169 <item name="android:maxLines">1</item> 170 <item name="android:textAlignment">viewStart</item> 171 <item name="android:ellipsize">none</item> 172 <item name="android:textAppearance">@style/TextAppearance.Leanback.ImageCardView.Content</item> 173 </style> 174 175 <style name="Widget.Leanback.ImageCardView.BadgeStyle"> 176 <item name="android:id">@id/extra_badge</item> 177 <item name="android:layout_width">@dimen/lb_basic_card_info_badge_size</item> 178 <item name="android:layout_height">@dimen/lb_basic_card_info_badge_size</item> 179 <item name="android:contentDescription">@null</item> 180 <item name="android:scaleType">fitCenter</item> 181 </style> 182 183 <style name="Widget.Leanback.Title" /> 184 185 <style name="Widget.Leanback.Title.Text"> 186 <item name="android:singleLine">true</item> 187 <item name="android:gravity">end</item> 188 <item name="android:ellipsize">end</item> 189 <item name="android:textAlignment">viewStart</item> 190 <item name="android:textAppearance">@style/TextAppearance.Leanback.Title</item> 191 </style> 192 193 <style name="Widget.Leanback.Title.Icon"> 194 </style> 195 196 <!-- HeadersFragment --> 197 <style name="Widget.Leanback.Headers" /> 198 199 <!-- RowsFragment --> 200 <style name="Widget.Leanback.Rows" > 201 </style> 202 203 <!-- row view --> 204 <style name="Widget.Leanback.Row" > 205 </style> 206 207 <style name="Widget.Leanback.GridItems" /> 208 209 <style name="Widget.Leanback.Headers.VerticalGridView" > 210 <item name="android:background">?attr/defaultBrandColor</item> 211 <item name="android:paddingStart">?attr/browsePaddingStart</item> 212 <item name="focusOutFront">true</item> 213 <item name="focusOutEnd">true</item> 214 <item name="verticalMargin">@dimen/lb_browse_headers_vertical_margin</item> 215 <item name="android:focusable">true</item> 216 <item name="android:focusableInTouchMode">true</item> 217 <item name="android:contentDescription">@string/lb_navigation_menu_contentDescription</item> 218 </style> 219 220 <style name="Widget.Leanback.Header" > 221 <item name="android:minHeight">@dimen/lb_browse_header_height</item> 222 <item name="android:minWidth">1dp</item> 223 <item name="android:textAppearance">@style/TextAppearance.Leanback.Header</item> 224 <item name="android:textAlignment">viewStart</item> 225 <item name="android:singleLine">false</item> 226 <item name="android:maxLines">2</item> 227 <item name="android:ellipsize">none</item> 228 </style> 229 230 <style name="Widget.Leanback.Header.Section" > 231 <item name="android:textAppearance">@style/TextAppearance.Leanback.Header.Section</item> 232 <item name="android:singleLine">true</item> 233 </style> 234 235 <style name="Widget.Leanback.Rows.VerticalGridView" > 236 <item name="android:paddingBottom">?attr/browsePaddingBottom</item> 237 <item name="focusOutFront">true</item> 238 <item name="focusOutEnd">true</item> 239 <item name="android:focusable">true</item> 240 <item name="android:focusableInTouchMode">true</item> 241 </style> 242 243 <style name="Widget.Leanback.Row.HorizontalGridView"> 244 <item name="android:focusable">true</item> 245 <item name="android:focusableInTouchMode">true</item> 246 <item name="android:paddingStart">?attr/browsePaddingStart</item> 247 <item name="android:paddingEnd">?attr/browsePaddingEnd</item> 248 <item name="android:paddingBottom">@dimen/lb_browse_item_vertical_margin</item> 249 <item name="android:paddingTop">@dimen/lb_browse_item_vertical_margin</item> 250 <item name="horizontalMargin">@dimen/lb_browse_item_horizontal_margin</item> 251 <item name="verticalMargin">@dimen/lb_browse_item_vertical_margin</item> 252 <item name="focusOutFront">true</item> 253 </style> 254 255 <style name="Widget.Leanback.GridItems.VerticalGridView"> 256 <item name="android:focusable">true</item> 257 <item name="android:focusableInTouchMode">true</item> 258 <item name="android:paddingStart">?attr/browsePaddingStart</item> 259 <item name="android:paddingEnd">?attr/browsePaddingEnd</item> 260 <item name="android:paddingBottom">@dimen/lb_vertical_grid_padding_bottom</item> 261 <item name="android:paddingTop">?attr/browseRowsMarginTop</item> 262 <item name="android:gravity">center_horizontal</item> 263 <item name="horizontalMargin">@dimen/lb_browse_item_horizontal_margin</item> 264 <item name="verticalMargin">@dimen/lb_browse_item_vertical_margin</item> 265 <item name="focusOutFront">true</item> 266 </style> 267 268 <style name="Widget.Leanback.Row.Header" parent="Widget.Leanback.Header"> 269 <item name="android:textAppearance">@style/TextAppearance.Leanback.Row.Header</item> 270 </style> 271 272 <style name="Widget.Leanback.Row.HeaderDock"> 273 <item name="android:paddingStart">?attr/browsePaddingStart</item> 274 </style> 275 276 <style name="TextAppearance.Leanback.Row.HoverCardTitle" parent="TextAppearance.Leanback"> 277 <item name="android:textSize">@dimen/lb_browse_row_hovercard_title_font_size</item> 278 </style> 279 280 <style name="TextAppearance.Leanback.Row.HoverCardDescription" parent="TextAppearance.Leanback"> 281 <item name="android:textSize">@dimen/lb_browse_row_hovercard_description_font_size</item> 282 </style> 283 284 <style name="Widget.Leanback.Row.HoverCardTitle" > 285 <item name="android:textAlignment">viewStart</item> 286 <item name="android:textAppearance">@style/TextAppearance.Leanback.Row.HoverCardTitle</item> 287 <item name="android:maxWidth">@dimen/lb_browse_row_hovercard_max_width</item> 288 <item name="android:singleLine">true</item> 289 <item name="android:ellipsize">end</item> 290 </style> 291 292 <style name="Widget.Leanback.Row.HoverCardDescription" > 293 <item name="android:textAlignment">viewStart</item> 294 <item name="android:textAppearance">@style/TextAppearance.Leanback.Row.HoverCardDescription</item> 295 <item name="android:maxWidth">@dimen/lb_browse_row_hovercard_max_width</item> 296 <item name="android:ellipsize">end</item> 297 <item name="android:maxLines">4</item> 298 </style> 299 300 301 <!-- Styles for playback control, playlist header, and playlist content in a default media player layout. --> 302 <style name="Widget.Leanback.PlaybackRow"> 303 <item name="android:layout_marginStart">?attr/playbackPaddingStart</item> 304 <item name="android:layout_marginEnd">?attr/playbackPaddingEnd</item> 305 <item name="android:clipChildren">true</item> 306 <item name="android:clipToPadding">true</item> 307 <item name="android:foreground">@null</item> 308 <item name="android:background">#384248</item> 309 <item name="android:layout_width">match_parent</item> 310 <item name="android:layout_height">48dp</item> 311 </style> 312 313 <style name="Widget.Leanback.PlaybackMediaItemRowStyle" parent="Widget.Leanback.PlaybackRow"> 314 <item name="android:focusable">false</item> 315 <item name="android:focusableInTouchMode">false</item> 316 </style> 317 318 <style name="Widget.Leanback.PlaybackMediaItemSeparatorStyle" parent="Widget.Leanback.PlaybackRow"> 319 <item name="android:background">@color/lb_media_background_color</item> 320 <item name="android:src">@color/lb_playback_media_row_separator_highlight_color</item> 321 <item name="android:layout_height">@dimen/lb_playback_media_row_separator_height</item>" 322 </style> 323 324 <style name="Widget.Leanback.PlaybackMediaListHeaderStyle" 325 parent="Widget.Leanback.PlaybackRow"> 326 <item name="android:background">#263238</item> 327 <item name="android:focusable">false</item> 328 <item name="android:focusableInTouchMode">false</item> 329 </style> 330 331 <style name="Widget.Leanback.PlaybackMediaItemDetailsStyle"> 332 <item name="android:paddingStart">?attr/playbackMediaItemPaddingStart</item> 333 <item name="android:layout_width">0dp</item> 334 <item name="android:layout_weight">1</item> 335 <item name="android:layout_height">match_parent</item> 336 <item name="android:focusable">true</item> 337 <item name="android:focusableInTouchMode">true</item> 338 </style> 339 340 <style name="TextAppearance.Leanback.PlaybackMediaListHeaderTitle"> 341 <item name="android:textColor">#80EEEEEE</item> 342 <item name="android:textSize">18sp</item> 343 <item name="android:fontFamily">sans-serif-regular</item> 344 </style> 345 346 <style name="Widget.Leanback.PlaybackMediaListHeaderTitleStyle"> 347 <item name="android:layout_width">match_parent</item> 348 <item name="android:layout_height">match_parent</item> 349 <item name="android:layout_alignParentStart">true</item> 350 <item name="android:layout_alignParentTop">true</item> 351 <item name="android:gravity">center_vertical</item>" 352 <item name="android:paddingLeft">?attr/playbackMediaItemPaddingStart</item> 353 <item name="android:textAppearance">@style/TextAppearance.Leanback.PlaybackMediaListHeaderTitle</item> 354 </style> 355 356 <style name="TextAppearance.Leanback.PlaybackMediaItemNumber"> 357 <item name="android:textColor">#FFFFFF</item> 358 <item name="android:textSize">18sp</item> 359 <item name="android:fontFamily">sans-serif-regular</item> 360 </style> 361 362 <style name="Widget.Leanback.PlaybackMediaItemNumberStyle"> 363 <item name="android:layout_width">56dp</item> 364 <item name="android:layout_height">match_parent</item> 365 <item name="android:gravity">center_vertical</item> 366 <item name="android:visibility">gone</item> 367 <item name="android:textAppearance">@style/TextAppearance.Leanback.PlaybackMediaItemNumber</item> 368 </style> 369 370 <style name="TextAppearance.Leanback.PlaybackMediaItemName"> 371 <item name="android:textColor">#FFFFFF</item> 372 <item name="android:textSize">18sp</item> 373 <item name="android:fontFamily">sans-serif-regular</item> 374 </style> 375 376 <style name="Widget.Leanback.PlaybackMediaItemNameStyle"> 377 <item name="android:layout_width">0dp</item> 378 <item name="android:layout_weight">1</item> 379 <item name="android:layout_height">match_parent</item> 380 <item name="android:singleLine">true</item> 381 <item name="android:gravity">center_vertical</item>" 382 <item name="android:textAppearance">@style/TextAppearance.Leanback.PlaybackMediaItemName</item> 383 </style> 384 385 <style name="TextAppearance.Leanback.PlaybackMediaItemDuration"> 386 <item name="android:textColor">#80FFFFFF</item> 387 <item name="android:textSize">18sp</item> 388 <item name="android:fontFamily">sans-serif-regular</item> 389 </style> 390 391 <style name="Widget.Leanback.PlaybackMediaItemDurationStyle"> 392 <item name="android:layout_width">56dp</item> 393 <item name="android:layout_height">match_parent</item> 394 <item name="android:singleLine">true</item> 395 <item name="android:gravity">center_vertical|right</item> 396 <item name="android:visibility">gone</item> 397 <item name="android:textAppearance">@style/TextAppearance.Leanback.PlaybackMediaItemDuration</item> 398 </style> 399 400 <style name="Widget.Leanback.DetailsDescriptionTitleStyle"> 401 <item name="android:textAlignment">viewStart</item> 402 <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsDescriptionTitle</item> 403 <item name="android:maxLines">@integer/lb_details_description_title_max_lines</item> 404 <item name="android:includeFontPadding">false</item> 405 <item name="android:ellipsize">end</item> 406 <item name="resizeTrigger">maxLines</item> 407 <item name="resizedTextSize">@dimen/lb_details_description_title_resized_text_size</item> 408 <item name="resizedPaddingAdjustmentTop">@dimen/lb_details_description_title_padding_adjust_top</item> 409 <item name="resizedPaddingAdjustmentBottom">@dimen/lb_details_description_title_padding_adjust_bottom</item> 410 </style> 411 412 <style name="Widget.Leanback.DetailsDescriptionSubtitleStyle"> 413 <item name="android:textAlignment">viewStart</item> 414 <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsDescriptionSubtitle</item> 415 <item name="android:maxLines">@integer/lb_details_description_subtitle_max_lines</item> 416 <item name="android:includeFontPadding">false</item> 417 <item name="android:ellipsize">end</item> 418 </style> 419 420 <style name="Widget.Leanback.DetailsDescriptionBodyStyle"> 421 <item name="android:textAlignment">viewStart</item> 422 <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsDescriptionBody</item> 423 <item name="android:includeFontPadding">false</item> 424 <item name="android:ellipsize">end</item> 425 </style> 426 427 <style name="Widget.Leanback.DetailsActionButtonStyleBase" parent="android:Widget.Holo.Button.Borderless"> 428 </style> 429 430 <style name="Widget.Leanback.DetailsActionButtonStyle" parent="Widget.Leanback.DetailsActionButtonStyleBase"> 431 <item name="android:textAlignment">viewStart</item> 432 <item name="android:textAppearance">@style/TextAppearance.Leanback.DetailsActionButton</item> 433 <item name="android:includeFontPadding">false</item> 434 <item name="android:drawablePadding">@dimen/lb_action_icon_margin</item> 435 <item name="android:focusable">true</item> 436 <item name="android:focusableInTouchMode">true</item> 437 <item name="android:paddingStart">@dimen/lb_action_padding_horizontal</item> 438 <item name="android:paddingEnd">@dimen/lb_action_padding_horizontal</item> 439 </style> 440 441 <style name="Widget.Leanback.PlaybackControlsButtonStyle" > 442 <item name="android:focusable">true</item> 443 <item name="android:focusableInTouchMode">true</item> 444 </style> 445 446 <style name="Widget.Leanback.PlaybackControlLabelStyle"> 447 <item name="android:textAlignment">viewStart</item> 448 <item name="android:textAppearance">@style/TextAppearance.Leanback.PlaybackControlLabel</item> 449 </style> 450 451 <style name="Widget.Leanback.PlaybackControlsTimeStyle"> 452 <item name="android:textAlignment">viewStart</item> 453 <item name="android:textAppearance">@style/TextAppearance.Leanback.PlaybackControlsTime</item> 454 </style> 455 456 <style name="Widget.Leanback.ErrorMessageStyle"> 457 <item name="android:textAlignment">viewStart</item> 458 <item name="android:textAppearance">@style/TextAppearance.Leanback.ErrorMessage</item> 459 <item name="android:includeFontPadding">false</item> 460 <item name="android:maxLines">@integer/lb_error_message_max_lines</item> 461 <item name="android:ellipsize">end</item> 462 </style> 463 464 <style name="Widget.Leanback.SearchOrbViewStyle"> 465 <item name="searchOrbIcon">?attr/defaultSearchIcon</item> 466 <item name="searchOrbColor">?attr/defaultSearchColor</item> 467 <item name="searchOrbIconColor">?attr/defaultSearchIconColor</item> 468 <item name="searchOrbBrightColor">?attr/defaultSearchBrightColor</item> 469 </style> 470 471 <style name="Widget.Leanback.PlaybackControlsActionIconsStyle"> 472 <item name="play">@drawable/lb_ic_play</item> 473 <item name="pause">@drawable/lb_ic_pause</item> 474 <item name="fast_forward">@drawable/lb_ic_fast_forward</item> 475 <item name="rewind">@drawable/lb_ic_fast_rewind</item> 476 <item name="skip_next">@drawable/lb_ic_skip_next</item> 477 <item name="skip_previous">@drawable/lb_ic_skip_previous</item> 478 <item name="thumb_up_outline">@drawable/lb_ic_thumb_up_outline</item> 479 <item name="thumb_up">@drawable/lb_ic_thumb_up</item> 480 <item name="thumb_down_outline">@drawable/lb_ic_thumb_down_outline</item> 481 <item name="thumb_down">@drawable/lb_ic_thumb_down</item> 482 <item name="repeat">@drawable/lb_ic_loop</item> 483 <item name="repeat_one">@drawable/lb_ic_loop_one</item> 484 <item name="shuffle">@drawable/lb_ic_shuffle</item> 485 <item name="high_quality">@drawable/lb_ic_hq</item> 486 <item name="closed_captioning">@drawable/lb_ic_cc</item> 487 <item name="picture_in_picture">@drawable/lb_ic_pip</item> 488 </style> 489 490 <!-- Style for the main container view in a GuidanceStylist's default layout. --> 491 <style name="Widget.Leanback.GuidanceContainerStyle"> 492 <item name="android:layout_width">match_parent</item> 493 <item name="android:layout_height">match_parent</item> 494 <item name="android:paddingStart">56dp</item> 495 <item name="android:paddingEnd">32dp</item> 496 <item name="android:clipToPadding">false</item> 497 </style> 498 499 <!-- Style for the title view in a GuidanceStylist's default layout. --> 500 <style name="Widget.Leanback.GuidanceTitleStyle"> 501 <item name="android:importantForAccessibility">no</item> 502 <item name="android:layout_below">@id/guidance_breadcrumb</item> 503 <item name="android:layout_toEndOf">@id/guidance_icon</item> 504 <item name="android:layout_width">wrap_content</item> 505 <item name="android:layout_height">wrap_content</item> 506 <item name="android:layout_centerVertical">true</item> 507 <item name="android:ellipsize">end</item> 508 <item name="android:fontFamily">sans-serif-light</item> 509 <item name="android:gravity">start</item> 510 <item name="android:maxLines">2</item> 511 <item name="android:textColor">#FFF1F1F1</item> 512 <item name="android:textSize">36sp</item> 513 <item name="android:textAlignment">viewStart</item> 514 <item name="android:paddingBottom">4dp</item> 515 <item name="android:paddingTop">2dp</item> 516 </style> 517 518 <!-- Style for the description view in a GuidanceStylist's default layout. --> 519 <style name="Widget.Leanback.GuidanceDescriptionStyle"> 520 <item name="android:importantForAccessibility">no</item> 521 <item name="android:layout_below">@id/guidance_title</item> 522 <item name="android:layout_toEndOf">@id/guidance_icon</item> 523 <item name="android:layout_width">wrap_content</item> 524 <item name="android:layout_height">wrap_content</item> 525 <item name="android:layout_alignWithParentIfMissing">true</item> 526 <item name="android:ellipsize">end</item> 527 <item name="android:fontFamily">sans-serif</item> 528 <item name="android:gravity">start</item> 529 <item name="android:maxLines">6</item> 530 <item name="android:textColor">#88F1F1F1</item> 531 <item name="android:textSize">14sp</item> 532 <item name="android:lineSpacingExtra">3dp</item> 533 <item name="android:textAlignment">viewStart</item> 534 </style> 535 536 <!-- Style for the breadcrumb view in a GuidanceStylist's default layout. --> 537 <style name="Widget.Leanback.GuidanceBreadcrumbStyle"> 538 <item name="android:importantForAccessibility">no</item> 539 <item name="android:layout_width">wrap_content</item> 540 <item name="android:layout_height">wrap_content</item> 541 <item name="android:layout_toEndOf">@id/guidance_icon</item> 542 <item name="android:ellipsize">end</item> 543 <item name="android:fontFamily">sans-serif-condensed</item> 544 <item name="android:singleLine">true</item> 545 <item name="android:textColor">#88F1F1F1</item> 546 <item name="android:textSize">18sp</item> 547 <item name="android:gravity">start</item> 548 <item name="android:textAlignment">viewStart</item> 549 </style> 550 551 <!-- Style for the icon view in a GuidanceStylist's default layout. --> 552 <style name="Widget.Leanback.GuidanceIconStyle"> 553 <item name="android:layout_width">140dp</item> 554 <item name="android:layout_height">wrap_content</item> 555 <item name="android:layout_alignParentStart">true</item> 556 <item name="android:layout_marginEnd">24dp</item> 557 <item name="android:maxHeight">280dp</item> 558 <item name="android:scaleType">fitCenter</item> 559 </style> 560 561 <!-- Style for the vertical grid of actions in a GuidedActionsStylist's default layout. --> 562 <style name="Widget.Leanback.GuidedActionsListStyle"> 563 <item name="android:focusable">false</item> 564 <item name="android:focusableInTouchMode">false</item> 565 <item name="android:layout_width">match_parent</item> 566 <item name="android:layout_height">match_parent</item> 567 <item name="focusOutEnd">false</item> 568 <item name="focusOutFront">false</item> 569 </style> 570 571 <!-- Style for the vertical grid of sub actions in a GuidedActionsStylist's default layout. --> 572 <style name="Widget.Leanback.GuidedSubActionsListStyle" parent="Widget.Leanback.GuidedActionsListStyle"> 573 <item name="android:focusable">true</item> 574 <item name="android:focusableInTouchMode">true</item> 575 <item name="focusOutSideStart">false</item> 576 <item name="focusOutSideEnd">false</item> 577 <item name="android:layout_marginBottom">@dimen/lb_guidedactions_sublist_bottom_margin</item> 578 </style> 579 580 <!-- Style for the vertical grid of button actions in a GuidedActionsStylist's default layout. --> 581 <style name="Widget.Leanback.GuidedButtonActionsListStyle" parent="Widget.Leanback.GuidedActionsListStyle"> 582 </style> 583 584 <!-- Style for an action's container in a GuidedActionsStylist's default item layout. --> 585 <style name="Widget.Leanback.GuidedActionItemContainerStyle"> 586 <item name="android:layout_width">match_parent</item> 587 <item name="android:layout_height">wrap_content</item> 588 <item name="android:foreground">?attr/guidedActionsSelectorDrawable</item> 589 <item name="android:focusable">true</item> 590 <item name="android:focusableInTouchMode">true</item> 591 <item name="android:minHeight">@dimen/lb_guidedactions_item_min_height</item> 592 <item name="android:paddingBottom">@dimen/lb_guidedactions_vertical_padding</item> 593 <item name="android:paddingStart">@dimen/lb_guidedactions_item_start_padding</item> 594 <item name="android:paddingEnd">@dimen/lb_guidedactions_item_end_padding</item> 595 <item name="android:paddingTop">@dimen/lb_guidedactions_vertical_padding</item> 596 </style> 597 598 <!-- Style for an action's checkmark in a GuidedActionsStylist's default item layout. --> 599 <style name="Widget.Leanback.GuidedActionItemCheckmarkStyle"> 600 <item name="android:layout_width">@dimen/lb_guidedactions_item_checkmark_diameter</item> 601 <item name="android:layout_height">@dimen/lb_guidedactions_item_checkmark_diameter</item> 602 <item name="android:layout_gravity">center</item> 603 <item name="android:layout_marginEnd">@dimen/lb_guidedactions_item_delimiter_padding</item> 604 <item name="android:scaleType">centerInside</item> 605 <item name="android:visibility">gone</item> 606 </style> 607 608 <!-- Style for an action's icon in a GuidedActionsStylist's default item layout. --> 609 <style name="Widget.Leanback.GuidedActionItemIconStyle"> 610 <item name="android:layout_width">@dimen/lb_guidedactions_item_icon_width</item> 611 <item name="android:layout_height">@dimen/lb_guidedactions_item_icon_height</item> 612 <item name="android:layout_gravity">center</item> 613 <item name="android:layout_marginEnd">@dimen/lb_guidedactions_item_delimiter_padding</item> 614 <item name="android:scaleType">fitCenter</item> 615 <item name="android:visibility">gone</item> 616 </style> 617 618 <!-- Style for an action's text content in a GuidedActionsStylist's default item layout. --> 619 <style name="Widget.Leanback.GuidedActionItemContentStyle"> 620 <item name="android:layout_width">match_parent</item> 621 <item name="android:layout_height">wrap_content</item> 622 <item name="android:layout_gravity">start|center_vertical</item> 623 <item name="android:layout_weight">1</item> 624 <item name="android:orientation">vertical</item> 625 </style> 626 627 <!-- Style for an action's title in a GuidedActionsStylist's default item layout. --> 628 <style name="Widget.Leanback.GuidedActionItemTitleStyle"> 629 <item name="android:layout_width">match_parent</item> 630 <item name="android:layout_height">wrap_content</item> 631 <item name="android:alpha">@string/lb_guidedactions_item_unselected_text_alpha</item> 632 <item name="android:ellipsize">end</item> 633 <item name="android:fontFamily">sans-serif-condensed</item> 634 <item name="android:maxLines">@integer/lb_guidedactions_item_title_min_lines</item> 635 <item name="android:textColor">@color/lb_guidedactions_item_unselected_text_color</item> 636 <item name="android:textSize">@dimen/lb_guidedactions_item_title_font_size</item> 637 <item name="android:textAlignment">viewStart</item> 638 </style> 639 640 <!-- Style for an action's description in a GuidedActionsStylist's default item layout. --> 641 <style name="Widget.Leanback.GuidedActionItemDescriptionStyle"> 642 <item name="android:layout_width">match_parent</item> 643 <item name="android:layout_height">wrap_content</item> 644 <item name="android:alpha">@string/lb_guidedactions_item_unselected_description_text_alpha</item> 645 <item name="android:ellipsize">end</item> 646 <item name="android:fontFamily">sans-serif-condensed</item> 647 <item name="android:maxLines">@integer/lb_guidedactions_item_description_min_lines</item> 648 <item name="android:textColor">@color/lb_guidedactions_item_unselected_text_color</item> 649 <item name="android:textSize">@dimen/lb_guidedactions_item_description_font_size</item> 650 <item name="android:textAlignment">viewStart</item> 651 <item name="android:visibility">gone</item> 652 </style> 653 654 <!-- Style for an action's chevron in a GuidedActionsStylist's default item layout. --> 655 <style name="Widget.Leanback.GuidedActionItemChevronStyle"> 656 <item name="android:layout_width">wrap_content</item> 657 <item name="android:layout_height">wrap_content</item> 658 <item name="android:layout_gravity">center</item> 659 <item name="android:layout_marginStart">@dimen/lb_guidedactions_item_delimiter_padding</item> 660 <item name="android:scaleType">fitCenter</item> 661 <item name="android:src">@drawable/lb_ic_guidedactions_item_chevron</item> 662 <item name="android:visibility">gone</item> 663 </style> 664 665 <!-- deprecated style, do not use --> 666 <style name="Widget.Leanback.GuidedActionsContainerStyle"></style> 667 <!-- deprecated style, do not use --> 668 <style name="Widget.Leanback.GuidedActionsSelectorStyle"></style> 669 670 <!-- Style for the header in OnboardingFragment. --> 671 <style name="Widget.Leanback.OnboardingHeaderStyle"> 672 <item name="android:layout_width">@dimen/lb_onboarding_content_width</item> 673 <item name="android:layout_height">@dimen/lb_onboarding_header_height</item> 674 <item name="android:layout_alignParentTop">true</item> 675 <item name="android:layout_centerHorizontal">true</item> 676 <item name="android:layout_marginTop">@dimen/lb_onboarding_header_margin_top</item> 677 <item name="android:clipChildren">false</item> 678 <item name="android:clipToPadding">false</item> 679 <item name="android:orientation">vertical</item> 680 </style> 681 682 <!-- Style for the header title in OnboardingFragment. --> 683 <style name="Widget.Leanback.OnboardingTitleStyle"> 684 <item name="android:layout_width">match_parent</item> 685 <item name="android:layout_height">0dp</item> 686 <item name="android:layout_weight">0.5</item> 687 <item name="android:layout_marginBottom">3dp</item> 688 <item name="android:fontFamily">sans-serif-light</item> 689 <item name="android:gravity">center</item> 690 <item name="android:textColor">#EEEEEE</item> 691 <item name="android:textSize">34sp</item> 692 <item name="android:lineSpacingExtra">14sp</item> 693 </style> 694 695 <!-- Style for the header description in OnboardingFragment. --> 696 <style name="Widget.Leanback.OnboardingDescriptionStyle"> 697 <item name="android:layout_width">match_parent</item> 698 <item name="android:layout_height">0dp</item> 699 <item name="android:layout_weight">0.5</item> 700 <item name="android:layout_marginTop">3dp</item> 701 <item name="android:fontFamily">sans-serif-light</item> 702 <item name="android:gravity">center</item> 703 <item name="android:textColor">#B3EEEEEE</item> 704 <item name="android:textSize">14sp</item> 705 <item name="android:lineSpacingExtra">10sp</item> 706 </style> 707 708 <!-- Style for the container of page indicator and start button in OnboardingFragment. --> 709 <style name="Widget.Leanback.OnboardingNavigatorContainerStyle"> 710 <item name="android:layout_width">wrap_content</item> 711 <item name="android:layout_height">wrap_content</item> 712 <item name="android:layout_marginBottom">58dp</item> 713 <item name="android:layout_centerHorizontal">true</item> 714 <item name="android:layout_alignParentBottom">true</item> 715 </style> 716 717 <!-- Style for the page indicator in OnboardingFragment. --> 718 <style name="Widget.Leanback.OnboardingPageIndicatorStyle"> 719 <item name="android:layout_width">@dimen/lb_onboarding_content_width</item> 720 <item name="android:layout_height">@dimen/lb_onboarding_navigation_height</item> 721 <item name="android:layout_gravity">center_horizontal</item> 722 <item name="android:focusable">true</item> 723 <item name="android:contentDescription">@string/lb_onboarding_accessibility_next</item> 724 <item name="dotRadius">@dimen/lb_page_indicator_dot_radius</item> 725 <item name="arrowRadius">@dimen/lb_page_indicator_arrow_radius</item> 726 <item name="dotToDotGap">@dimen/lb_page_indicator_dot_gap</item> 727 <item name="dotToArrowGap">@dimen/lb_page_indicator_arrow_gap</item> 728 <item name="dotBgColor">@color/lb_page_indicator_dot</item> 729 <item name="arrowBgColor">@color/lb_page_indicator_arrow_background</item> 730 </style> 731 732 <!-- Style for the start button in OnboardingFragment. --> 733 <style name="Widget.Leanback.OnboardingStartButtonStyle"> 734 <item name="android:layout_width">wrap_content</item> 735 <item name="android:layout_height">36dp</item> 736 <item name="android:layout_gravity">center_horizontal</item> 737 <item name="android:layout_marginBottom">4dp</item> 738 <item name="android:background">@drawable/lb_onboarding_start_button_background</item> 739 <item name="android:elevation">1.5dp</item> 740 <item name="android:fontFamily">sans-serif</item> 741 <item name="android:gravity">center_vertical</item> 742 <item name="android:paddingEnd">24dp</item> 743 <item name="android:paddingStart">24dp</item> 744 <item name="android:stateListAnimator">@null</item> 745 <item name="android:text">@string/lb_onboarding_get_started</item> 746 <item name="android:textAllCaps">true</item> 747 <item name="android:textColor">#014269</item> 748 <item name="android:textSize">16sp</item> 749 </style> 750 751 <!-- Style for the logo splash image in OnboardingFragment. --> 752 <style name="Widget.Leanback.OnboardingLogoStyle"> 753 <item name="android:layout_width">wrap_content</item> 754 <item name="android:layout_height">wrap_content</item> 755 <item name="android:layout_centerInParent">true</item> 756 <item name="android:contentDescription">@null</item> 757 </style> 758 759 </resources> 760