Home | History | Annotate | Download | only in values
      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 
     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         <item name="defaultBrandColorDark">@color/lb_default_brand_color_dark</item>
     26 
     27         <item name="android:windowOverscan">true</item>
     28         <item name="guidedStepTheme">@style/Theme.Leanback.GuidedStep</item>
     29     </style>
     30 
     31     <style name="Theme.Leanback" parent="Theme.LeanbackBase">
     32 
     33         <item name="baseCardViewStyle">@style/Widget.Leanback.BaseCardViewStyle</item>
     34         <item name="imageCardViewStyle">@style/Widget.Leanback.ImageCardViewStyle</item>
     35         <item name="imageCardViewImageStyle">@style/Widget.Leanback.ImageCardView.ImageStyle</item>
     36         <item name="imageCardViewTitleStyle">@style/Widget.Leanback.ImageCardView.TitleStyle</item>
     37         <item name="imageCardViewContentStyle">@style/Widget.Leanback.ImageCardView.ContentStyle</item>
     38         <item name="imageCardViewBadgeStyle">@style/Widget.Leanback.ImageCardView.BadgeStyle</item>
     39         <item name="imageCardViewInfoAreaStyle">@style/Widget.Leanback.ImageCardView.InfoAreaStyle</item>
     40 
     41         <item name="browsePaddingStart">@dimen/lb_browse_padding_start</item>
     42         <item name="browsePaddingEnd">@dimen/lb_browse_padding_end</item>
     43         <item name="browsePaddingTop">@dimen/lb_browse_padding_top</item>
     44         <item name="browsePaddingBottom">@dimen/lb_browse_padding_bottom</item>
     45         <item name="browseRowsMarginStart">@dimen/lb_browse_rows_margin_start</item>
     46         <item name="browseRowsMarginTop">@dimen/lb_browse_rows_margin_top</item>
     47         <item name="browseRowsFadingEdgeLength">@dimen/lb_browse_rows_fading_edge</item>
     48 
     49         <item name="headersVerticalGridStyle">@style/Widget.Leanback.Headers.VerticalGridView</item>
     50         <item name="headerStyle">@style/Widget.Leanback.Header</item>
     51         <item name="sectionHeaderStyle">@style/Widget.Leanback.Header.Section</item>
     52 
     53         <item name="rowsVerticalGridStyle">@style/Widget.Leanback.Rows.VerticalGridView</item>
     54         <item name="rowHorizontalGridStyle">@style/Widget.Leanback.Row.HorizontalGridView</item>
     55         <item name="itemsVerticalGridStyle">@style/Widget.Leanback.GridItems.VerticalGridView</item>
     56 
     57         <item name="browseTitleViewLayout">@layout/lb_browse_title</item>
     58         <item name="browseTitleTextStyle">@style/Widget.Leanback.Title.Text</item>
     59         <item name="browseTitleIconStyle">@style/Widget.Leanback.Title.Icon</item>
     60         <item name="browseTitleViewStyle">@style/Widget.Leanback.TitleView</item>
     61 
     62         <item name="rowHeaderStyle">@style/Widget.Leanback.Row.Header</item>
     63         <item name="rowHoverCardTitleStyle">@style/Widget.Leanback.Row.HoverCardTitle</item>
     64         <item name="rowHoverCardDescriptionStyle">@style/Widget.Leanback.Row.HoverCardDescription</item>
     65         <item name="rowHeaderDockStyle">@style/Widget.Leanback.Row.HeaderDock</item>
     66 
     67         <item name="searchOrbViewStyle">@style/Widget.Leanback.SearchOrbViewStyle</item>
     68 
     69 
     70         <item name="detailsDescriptionTitleStyle">@style/Widget.Leanback.DetailsDescriptionTitleStyle</item>
     71         <item name="detailsDescriptionSubtitleStyle">@style/Widget.Leanback.DetailsDescriptionSubtitleStyle</item>
     72         <item name="detailsDescriptionBodyStyle">@style/Widget.Leanback.DetailsDescriptionBodyStyle</item>
     73         <item name="detailsActionButtonStyle">@style/Widget.Leanback.DetailsActionButtonStyle</item>
     74         <!-- Attributes used for styling of a playback -->
     75         <item name="playbackPaddingStart">@dimen/lb_playback_controls_margin_start</item>
     76         <item name="playbackPaddingEnd">@dimen/lb_playback_controls_margin_end</item>
     77         <item name="playbackMediaItemPaddingStart">@dimen/lb_playback_media_row_horizontal_padding</item>
     78 
     79         <item name="playbackMediaListHeaderStyle">@style/Widget.Leanback.PlaybackMediaListHeaderStyle</item>
     80         <item name="playbackMediaItemRowStyle">@style/Widget.Leanback.PlaybackMediaItemRowStyle</item>
     81         <item name="playbackMediaItemSeparatorStyle">@style/Widget.Leanback.PlaybackMediaItemSeparatorStyle</item>
     82         <item name="playbackMediaListHeaderTitleStyle">@style/Widget.Leanback.PlaybackMediaListHeaderTitleStyle</item>
     83         <item name="playbackMediaItemDetailsStyle">@style/Widget.Leanback.PlaybackMediaItemDetailsStyle</item>
     84         <item name="playbackMediaItemNumberViewFlipperStyle">@style/Widget.Leanback.PlaybackMediaItemNumberViewFlipperStyle</item>
     85         <item name="playbackMediaItemNumberViewFlipperLayout">@layout/lb_media_item_number_view_flipper</item>
     86         <item name="playbackMediaItemNumberStyle">@style/Widget.Leanback.PlaybackMediaItemNumberStyle</item>
     87         <item name="playbackMediaItemNameStyle">@style/Widget.Leanback.PlaybackMediaItemNameStyle</item>
     88         <item name="playbackMediaItemDurationStyle">@style/Widget.Leanback.PlaybackMediaItemDurationStyle</item>
     89 
     90         <item name="playbackControlsButtonStyle">@style/Widget.Leanback.PlaybackControlsButtonStyle</item>
     91         <item name="playbackControlButtonLabelStyle">@style/Widget.Leanback.PlaybackControlLabelStyle</item>
     92         <item name="playbackControlsTimeStyle">@style/Widget.Leanback.PlaybackControlsTimeStyle</item>
     93         <item name="playbackControlsActionIcons">@style/Widget.Leanback.PlaybackControlsActionIconsStyle</item>
     94 
     95 
     96         <item name="errorMessageStyle">@style/Widget.Leanback.ErrorMessageStyle</item>
     97 
     98         <item name="defaultSearchColor">@color/lb_default_search_color</item>
     99         <item name="defaultSearchIconColor">@color/lb_default_search_icon_color</item>
    100         <item name="defaultSearchBrightColor">?attr/defaultSearchColor</item>
    101         <item name="defaultSearchIcon">@drawable/lb_ic_in_app_search</item>
    102 
    103         <item name="defaultSectionHeaderColor">?attr/defaultSearchColor</item>
    104 
    105         <!-- android:windowSharedElementEnterTransition is kept for backward compatibility for apps still refer
    106         to Theme.Leanback, app should use Theme.Leanback.Details instead -->
    107         <item name="android:windowSharedElementEnterTransition">@transition/lb_shared_element_enter_transition</item>
    108         <!-- android:windowSharedElementReturnTransition is kept for backward compatibility for apps still refer
    109         to Theme.Leanback, app should use Theme.Leanback.Details instead -->
    110         <item name="android:windowSharedElementReturnTransition">@transition/lb_shared_element_return_transition</item>
    111         <item name="android:windowEnterTransition">@transition/lb_enter_transition</item>
    112         <item name="android:windowReturnTransition">@transition/lb_return_transition</item>
    113         <item name="android:windowTransitionBackgroundFadeDuration">350</item>
    114 
    115         <item name="overlayDimMaskColor">@color/lb_view_dim_mask_color</item>
    116         <item name="overlayDimActiveLevel">@fraction/lb_view_active_level</item>
    117         <item name="overlayDimDimmedLevel">@fraction/lb_view_dimmed_level</item>
    118 
    119     </style>
    120 
    121     <style name="Theme.Leanback.Browse" parent="Theme.Leanback">
    122         <item name="android:windowEnterTransition">@transition/lb_browse_enter_transition</item>
    123         <item name="android:windowReturnTransition">@transition/lb_browse_return_transition</item>
    124     </style>
    125 
    126     <style name="Theme.Leanback.VerticalGrid" parent="Theme.Leanback">
    127         <item name="android:windowEnterTransition">@transition/lb_vertical_grid_enter_transition</item>
    128         <item name="android:windowReturnTransition">@transition/lb_vertical_grid_return_transition</item>
    129     </style>
    130 
    131     <style name="Theme.Leanback.Details" parent="Theme.Leanback">
    132         <item name="android:windowEnterTransition">@transition/lb_details_enter_transition</item>
    133         <item name="android:windowReturnTransition">@transition/lb_details_return_transition</item>
    134         <item name="android:windowSharedElementEnterTransition">@transition/lb_shared_element_enter_transition</item>
    135         <item name="android:windowSharedElementReturnTransition">@transition/lb_shared_element_return_transition</item>
    136     </style>
    137 
    138     <!-- Theme for the details without shared element transition -->
    139     <style name="Theme.Leanback.Details.NoSharedElementTransition">
    140         <item name="android:windowSharedElementEnterTransition">@null</item>
    141         <item name="android:windowSharedElementReturnTransition">@null</item>
    142     </style>
    143 
    144     <style name="Theme.Leanback.GuidedStep" parent="Theme.LeanbackBase">
    145         <item name="guidedStepThemeFlag">true</item>
    146         <item name="guidedStepHeightWeight">@string/lb_guidedstep_height_weight</item>
    147 
    148         <item name="android:windowEnterTransition">@transition/lb_guidedstep_activity_enter</item>
    149 
    150         <!-- background applied to each GuidedStepFragment by default-->
    151         <item name="guidedStepBackground">?android:attr/colorBackground</item>
    152         <!-- Each GuidedStepFragment has a background so activity does not need a background.
    153              But We still need a dumb background to keep the temporary translucent state last
    154              as long as the background view fade-in transition -->
    155         <item name="android:windowBackground">@android:color/transparent</item>
    156         <item name="android:windowTransitionBackgroundFadeDuration">@integer/lb_guidedstep_activity_background_fade_duration_ms</item>
    157 
    158         <item name="guidedStepImeAppearingAnimation">@animator/lb_guidedstep_slide_up</item>
    159         <item name="guidedStepImeDisappearingAnimation">@animator/lb_guidedstep_slide_down</item>
    160 
    161         <item name="guidanceContainerStyle">@style/Widget.Leanback.GuidanceContainerStyle</item>
    162         <item name="guidanceIconStyle">@style/Widget.Leanback.GuidanceIconStyle</item>
    163         <item name="guidanceTitleStyle">@style/Widget.Leanback.GuidanceTitleStyle</item>
    164         <item name="guidanceBreadcrumbStyle">@style/Widget.Leanback.GuidanceBreadcrumbStyle</item>
    165         <item name="guidanceDescriptionStyle">@style/Widget.Leanback.GuidanceDescriptionStyle</item>
    166 
    167         <item name="guidedActionsElevation">@dimen/lb_guidedactions_elevation</item>
    168         <item name="guidedActionsBackground">@color/lb_guidedactions_background</item>
    169         <item name="guidedActionsBackgroundDark">@color/lb_guidedactions_background_dark</item>
    170         <item name="guidedActionsSelectorDrawable">@drawable/lb_selectable_item_background</item>
    171         <item name="guidedActionsListStyle">@style/Widget.Leanback.GuidedActionsListStyle</item>
    172         <item name="guidedSubActionsListStyle">@style/Widget.Leanback.GuidedSubActionsListStyle</item>
    173         <item name="guidedButtonActionsListStyle">@style/Widget.Leanback.GuidedButtonActionsListStyle</item>
    174 
    175         <item name="guidedActionItemContainerStyle">@style/Widget.Leanback.GuidedActionItemContainerStyle</item>
    176         <item name="guidedActionItemCheckmarkStyle">@style/Widget.Leanback.GuidedActionItemCheckmarkStyle</item>
    177         <item name="guidedActionItemIconStyle">@style/Widget.Leanback.GuidedActionItemIconStyle</item>
    178         <item name="guidedActionItemContentStyle">@style/Widget.Leanback.GuidedActionItemContentStyle</item>
    179         <item name="guidedActionItemTitleStyle">@style/Widget.Leanback.GuidedActionItemTitleStyle</item>
    180         <item name="guidedActionItemDescriptionStyle">@style/Widget.Leanback.GuidedActionItemDescriptionStyle</item>
    181         <item name="guidedActionItemChevronStyle">@style/Widget.Leanback.GuidedActionItemChevronStyle</item>
    182 
    183         <item name="guidedActionPressedAnimation">@animator/lb_guidedactions_item_pressed</item>
    184         <item name="guidedActionUnpressedAnimation">@animator/lb_guidedactions_item_unpressed</item>
    185         <item name="guidedActionEnabledChevronAlpha">@string/lb_guidedactions_item_enabled_chevron_alpha</item>
    186         <item name="guidedActionDisabledChevronAlpha">@string/lb_guidedactions_item_disabled_chevron_alpha</item>
    187         <item name="guidedActionContentWidthWeight">@string/lb_guidedactions_width_weight</item>
    188         <item name="guidedActionContentWidthWeightTwoPanels">@string/lb_guidedactions_width_weight_two_panels</item>
    189         <item name="guidedButtonActionsWidthWeight">@string/lb_guidedbuttonactions_width_weight</item>
    190         <item name="guidedActionTitleMinLines">@integer/lb_guidedactions_item_title_min_lines</item>
    191         <item name="guidedActionTitleMaxLines">@integer/lb_guidedactions_item_title_max_lines</item>
    192         <item name="guidedActionDescriptionMinLines">@integer/lb_guidedactions_item_description_min_lines</item>
    193         <item name="guidedActionVerticalPadding">@dimen/lb_guidedactions_vertical_padding</item>
    194         <item name="guidedStepKeyline">@string/lb_guidedstep_keyline</item>
    195     </style>
    196 
    197     <style name="Theme.Leanback.GuidedStep.Half" parent="Theme.Leanback.GuidedStep">
    198       <item name="android:windowEnterTransition">@transition/lb_guidedstep_activity_enter_bottom</item>
    199       <item name="guidedStepHeightWeight">@string/lb_guidedstep_height_weight_translucent</item>
    200       <item name="android:windowIsTranslucent">true</item>
    201       <item name="android:windowBackground">@android:color/transparent</item>
    202     </style>
    203 
    204     <style name="Theme.Leanback.Onboarding" parent="Theme.LeanbackBase">
    205         <item name="onboardingHeaderStyle">@style/Widget.Leanback.OnboardingHeaderStyle</item>
    206         <item name="onboardingTitleStyle">@style/Widget.Leanback.OnboardingTitleStyle</item>
    207         <item name="onboardingDescriptionStyle">@style/Widget.Leanback.OnboardingDescriptionStyle</item>
    208         <item name="onboardingNavigatorContainerStyle">@style/Widget.Leanback.OnboardingNavigatorContainerStyle</item>
    209         <item name="onboardingPageIndicatorStyle">@style/Widget.Leanback.OnboardingPageIndicatorStyle</item>
    210         <item name="onboardingStartButtonStyle">@style/Widget.Leanback.OnboardingStartButtonStyle</item>
    211         <item name="onboardingLogoStyle">@style/Widget.Leanback.OnboardingLogoStyle</item>
    212     </style>
    213 
    214 </resources>
    215