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>
19
20    <!-- LeanbackBase may be overridden for specific api levels -->
21    <style name="Theme.LeanbackBase" parent="android:Theme.Holo.NoActionBar">
22        <item name="playbackProgressPrimaryColor">@color/lb_playback_progress_color_no_theme</item>
23        <item name="playbackControlsIconHighlightColor">@color/lb_playback_icon_highlight_no_theme</item>
24        <item name="defaultBrandColor">@color/lb_default_brand_color</item>
25    </style>
26
27    <style name="Theme.Leanback" parent="Theme.LeanbackBase">
28
29        <item name="android:windowOverscan">true</item>
30
31        <item name="baseCardViewStyle">@style/Widget.Leanback.BaseCardViewStyle</item>
32        <item name="imageCardViewStyle">@style/Widget.Leanback.ImageCardViewStyle</item>
33
34        <item name="browsePaddingStart">@dimen/lb_browse_padding_start</item>
35        <item name="browsePaddingEnd">@dimen/lb_browse_padding_end</item>
36        <item name="browsePaddingTop">@dimen/lb_browse_padding_top</item>
37        <item name="browsePaddingBottom">@dimen/lb_browse_padding_bottom</item>
38        <item name="browseRowsMarginStart">@dimen/lb_browse_rows_margin_start</item>
39        <item name="browseRowsMarginTop">@dimen/lb_browse_rows_margin_top</item>
40        <item name="browseRowsFadingEdgeLength">@dimen/lb_browse_rows_fading_edge</item>
41
42        <item name="headersVerticalGridStyle">@style/Widget.Leanback.Headers.VerticalGridView</item>
43        <item name="headerStyle">@style/Widget.Leanback.Header</item>
44
45        <item name="rowsVerticalGridStyle">@style/Widget.Leanback.Rows.VerticalGridView</item>
46        <item name="rowHorizontalGridStyle">@style/Widget.Leanback.Row.HorizontalGridView</item>
47        <item name="itemsVerticalGridStyle">@style/Widget.Leanback.GridItems.VerticalGridView</item>
48
49        <item name="browseTitleTextStyle">@style/Widget.Leanback.Title.Text</item>
50        <item name="browseTitleIconStyle">@style/Widget.Leanback.Title.Icon</item>
51        <item name="browseTitleViewStyle">@style/Widget.Leanback.TitleView</item>
52
53        <item name="rowHeaderStyle">@style/Widget.Leanback.Row.Header</item>
54        <item name="rowHoverCardTitleStyle">@style/Widget.Leanback.Row.HoverCardTitle</item>
55        <item name="rowHoverCardDescriptionStyle">@style/Widget.Leanback.Row.HoverCardDescription</item>
56
57        <item name="searchOrbViewStyle">@style/Widget.Leanback.SearchOrbViewStyle</item>
58
59        <item name="detailsDescriptionTitleStyle">@style/Widget.Leanback.DetailsDescriptionTitleStyle</item>
60        <item name="detailsDescriptionSubtitleStyle">@style/Widget.Leanback.DetailsDescriptionSubtitleStyle</item>
61        <item name="detailsDescriptionBodyStyle">@style/Widget.Leanback.DetailsDescriptionBodyStyle</item>
62        <item name="detailsActionButtonStyle">@style/Widget.Leanback.DetailsActionButtonStyle</item>
63        <item name="playbackControlsButtonStyle">@style/Widget.Leanback.PlaybackControlsButtonStyle</item>
64        <item name="playbackControlButtonLabelStyle">@style/Widget.Leanback.PlaybackControlLabelStyle</item>
65        <item name="playbackControlsTimeStyle">@style/Widget.Leanback.PlaybackControlsTimeStyle</item>
66        <item name="playbackControlsActionIcons">@style/Widget.Leanback.PlaybackControlsActionIconsStyle</item>
67
68        <item name="errorMessageStyle">@style/Widget.Leanback.ErrorMessageStyle</item>
69
70        <!-- TODO should be null, and set programatically to avoid dependence on leanback theme -->
71        <item name="defaultSearchColor">@null</item>
72        <item name="defaultSearchBrightColor">@null</item>
73        <item name="defaultSearchIcon">@null</item>
74
75        <!-- android:windowSharedElementEnterTransition is kept for backward compatibility for apps still refer
76        to Theme.Leanback, app should use Theme.Leanback.Details instead -->
77        <item name="android:windowSharedElementEnterTransition">@transition/lb_shared_element_enter_transition</item>
78        <!-- android:windowSharedElementReturnTransition is kept for backward compatibility for apps still refer
79        to Theme.Leanback, app should use Theme.Leanback.Details instead -->
80        <item name="android:windowSharedElementReturnTransition">@transition/lb_shared_element_return_transition</item>
81        <item name="android:windowEnterTransition">@transition/lb_enter_transition</item>
82        <item name="android:windowReturnTransition">@transition/lb_return_transition</item>
83        <item name="android:windowTransitionBackgroundFadeDuration">350</item>
84
85        <item name="overlayDimMaskColor">@color/lb_view_dim_mask_color</item>
86        <item name="overlayDimActiveLevel">@fraction/lb_view_active_level</item>
87        <item name="overlayDimDimmedLevel">@fraction/lb_view_dimmed_level</item>
88    </style>
89
90    <style name="Theme.Leanback.Browse" parent="Theme.Leanback">
91        <item name="android:windowEnterTransition">@transition/lb_browse_enter_transition</item>
92        <item name="android:windowReturnTransition">@transition/lb_browse_return_transition</item>
93    </style>
94
95    <style name="Theme.Leanback.Details" parent="Theme.Leanback">
96        <item name="android:windowEnterTransition">@transition/lb_details_enter_transition</item>
97        <item name="android:windowReturnTransition">@transition/lb_details_return_transition</item>
98        <item name="android:windowSharedElementEnterTransition">@transition/lb_shared_element_enter_transition</item>
99        <item name="android:windowSharedElementReturnTransition">@transition/lb_shared_element_return_transition</item>
100    </style>
101
102</resources>
103