Xml文件  |  196行  |  9.74 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2015 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 xmlns:android="http://schemas.android.com/apk/res/android">
    <style name="track_meta_text">
        <item name="android:layout_width">wrap_content</item>
        <item name="android:layout_height">12dp</item>
        <item name="android:layout_marginEnd">4dp</item>
        <item name="android:gravity">center</item>
        <item name="android:paddingStart">4dp</item>
        <item name="android:paddingEnd">4dp</item>
        <item name="android:textSize">@dimen/channel_banner_track_meta_text_size</item>
        <item name="android:textStyle">bold</item>
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textColor">#455A64</item>
        <item name="android:textAllCaps">true</item>
        <item name="android:background">@drawable/track_meta_border</item>
    </style>

    <style name="track_meta_text.channel_banner">
        <item name="android:layout_marginEnd">8dp</item>
    </style>

    <style name="pin_dialog_animation" parent="@android:style/Animation.Activity">
        <item name="android:windowEnterAnimation">@anim/pin_dialog_enter</item>
        <item name="android:windowExitAnimation">@anim/pin_dialog_exit</item>
    </style>

    <style name="text_appearance_channel_banner_episode_title">
        <item name="android:textColor">@color/channel_banner_episode_text_color</item>
    </style>

    <style name="text_appearance_card_view_episode_number">
        <item name="android:textColor">@color/dvr_card_episode_text_color</item>
    </style>

    <style name="pin_number_view">
        <item name="android:layout_width">@dimen/pin_number_picker_text_view_width</item>
        <item name="android:layout_height">@dimen/pin_number_picker_text_view_height</item>
        <item name="android:gravity">center</item>
        <item name="android:textSize">@dimen/pin_number_picker_text_size</item>
        <item name="android:textColor">@color/pin_number_picker_text_color</item>
        <item name="android:fontFamily">@string/light_font</item>
    </style>

    <style name="menu_row_view">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:orientation">vertical</item>
        <item name="android:focusable">true</item>
        <item name="android:descendantFocusability">afterDescendants</item>
    </style>

    <!-- To maximize the height of the contents view, keep the height of the TextView as small as possible. -->
    <style name="menu_row_title_view">
        <item name="android:layout_width">@dimen/menu_row_title_width</item>
        <item name="android:layout_height">wrap_content</item>
        <item name="android:layout_marginStart">@dimen/menu_padding_start</item>
        <item name="android:layout_marginEnd">@dimen/menu_padding_end</item>
        <item name="android:fontFamily">@string/condensed_font</item>
        <item name="android:textAlignment">gravity</item>
        <item name="android:gravity">start</item>
        <item name="android:textColor">@color/menu_row_title</item>
        <item name="android:textSize">@dimen/menu_row_title_text_size_deselected</item>
        <item name="android:transformPivotX">@dimen/menu_row_title_transform_pivot_x</item>
        <item name="android:alpha">@dimen/menu_row_title_alpha_deselected</item>
    </style>

    <style name="menu_row_contents_view">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">match_parent</item>
        <item name="android:paddingStart">@dimen/menu_padding_start</item>
        <item name="android:paddingEnd">@dimen/menu_padding_end</item>
        <item name="android:paddingTop">@dimen/menu_row_contents_padding_top</item>
    </style>

    <style name="dvr_card_view_title_text">
        <item name="android:textSize">14sp</item>
        <item name="android:textColor">@color/lb_basic_card_title_text_color</item>
        <item name="android:fontFamily">sans-serif-condensed</item>
        <item name="android:maxLines">@integer/dvr_card_title_max_lines_folded</item>
        <item name="android:ellipsize">end</item>
    </style>

    <style name="dvr_card_view_content_text" parent="dvr_card_view_title_text">
        <item name="android:textSize">12sp</item>
        <item name="android:textColor">@color/lb_basic_card_content_text_color</item>
    </style>

    <style name="Animation.SelectInputActivity" parent="android:Animation.Activity">
        <item name="android:windowEnterAnimation">@anim/select_input_activity_enter</item>
        <item name="android:windowExitAnimation">@anim/select_input_activity_exit</item>
    </style>

    <style name="TV.DoneButtonContainerStyle" parent="DoneButtonContainerStyle">
        <item name="android:background">@color/setup_done_button_container_background</item>
    </style>

    <style name="TV.HalfSizedDialogAnim" parent="android:Animation">
        <item name="android:windowEnterAnimation">@anim/half_sized_dialog_enter</item>
        <item name="android:windowExitAnimation">@anim/half_sized_dialog_exit</item>
    </style>

    <style name="TV.Dvr.GuidanceTitleStyle" parent="Widget.Setup.GuidanceTitleStyle">
        <item name="android:layout_alignParentStart">false</item>
        <item name="android:layout_toStartOf">@null</item>
        <item name="android:layout_marginTop">0dp</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:textSize">34sp</item>
        <item name="android:fontFamily">@string/light_font</item>
        <item name="android:gravity">start</item>
    </style>

    <style name="TV.Dvr.GuidanceBreadcrumbStyle" parent="Widget.Setup.GuidanceBreadcrumbStyle">
        <item name="android:layout_marginTop">55dp</item>
    </style>

    <style name="TV.Dvr.GuidanceDescriptionStyle" parent="Widget.Setup.GuidanceDescriptionStyle">
        <item name="android:layout_alignParentStart">false</item>
        <item name="android:layout_width">match_parent</item>
        <item name="android:fontFamily">@string/light_font</item>
        <item name="android:textColor">#ADEEEEEE</item>
        <item name="android:gravity">start</item>
    </style>

    <!-- Style for the icon view in a half sized dialog. -->
    <style name="TV.Dvr.GuidanceIconStyle" parent="Widget.Leanback.GuidanceIconStyle">
        <item name="android:layout_width">60dp</item>
        <item name="android:layout_height">60dp</item>
    </style>

    <style name="TV.Dvr.GuidedActionsListStyle" parent="Widget.Leanback.GuidedActionsListStyle">
        <item name="android:layout_marginTop">51dp</item>
        <item name="android:layout_marginBottom">10dp</item>
        <item name="android:layout_marginEnd">56dp</item>
    </style>

    <style name="TV.Dvr.GuidedActionItemContainerStyle" parent="Widget.Setup.GuidedActionItemContainerStyle">
        <item name="android:layout_height">48dp</item>
        <item name="android:paddingEnd">16dp</item>
        <item name="android:paddingStart">16dp</item>
    </style>

    <style name="TV.Dvr.GuidedActionItemContainerStyle.Twoline.Action" parent="TV.Dvr.GuidedActionItemContainerStyle">
        <item name="android:layout_height">64dp</item>
    </style>

    <style name="TV.Dvr.Conflict.GuidanceTitleStyle" parent="TV.Dvr.GuidanceTitleStyle">
        <item name="android:textSize">28sp</item>
    </style>

    <style name="TV.Dvr.Conflict.GuidedActionsListStyle" parent="TV.Dvr.GuidedActionsListStyle">
        <item name="android:layout_marginTop">30dp</item>
    </style>

    <style name="TV.Dvr.Settings.GuidedSubActionsListStyle" parent="Widget.Leanback.GuidedSubActionsListStyle">
        <item name="android:layout_marginTop">51dp</item>
        <item name="android:paddingTop">10dp</item>
        <item name="android:layout_marginBottom">51dp</item>
        <item name="android:background">@color/common_setup_done_container_background</item>
    </style>

    <style name="TV.Dvr.Settings.GuidedButtonActionsListStyle" parent="Widget.Leanback.GuidedButtonActionsListStyle">
        <item name="android:background">@color/common_setup_done_container_background</item>
    </style>

    <style name="TV.Dvr.Settings.Priority.GuidedActionItemContainerStyle" parent="Widget.Setup.GuidedActionItemContainerStyle">
        <item name="android:layout_height">@dimen/dvr_settings_one_line_action_container_height</item>
    </style>

    <style name="TV.Dvr.Series.Deletion.guidedActionItemCheckmarkStyle" parent="Widget.Leanback.GuidedActionItemCheckmarkStyle">
        <item name="android:layout_width">@dimen/dvr_deletion_check_mark_size</item>
        <item name="android:layout_height">@dimen/dvr_deletion_check_mark_size</item>
        <item name="android:layout_marginEnd">@dimen/dvr_deletion_check_mark_margin</item>
    </style>

    <style name="TV.Dvr.Browse.DetailsDescriptionTitleStyle" parent="Widget.Leanback.DetailsDescriptionTitleStyle">
        <item name="resizedTextSize">@dimen/dvr_details_description_title_resized_text_size</item>
        <item name="resizedPaddingAdjustmentTop">@dimen/dvr_details_description_title_padding_adjust_top</item>
        <item name="resizedPaddingAdjustmentBottom">@dimen/dvr_details_description_title_padding_adjust_bottom</item>
    </style>
</resources>