Xml文件  |  220行  |  9.89 KB

<?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 xmlns:android="http://schemas.android.com/apk/res/android">
    <attr name="wifi_signal_color" format="reference" />
    <attr name="wps_color" format="reference" />

    <style name="SettingsStyle.TextAppearanceMedium" parent="@android:style/TextAppearance.Holo.Medium">
        <item name="android:textSize">14sp</item>
        <item name="android:fontFamily">sans-serif-light</item>
    </style>

    <style name="SettingsStyle.TextAppearanceLarge" parent="@android:style/TextAppearance.Holo.Large">
        <item name="android:textSize">34sp</item>
        <item name="android:fontFamily">sans-serif-light</item>
    </style>

    <style name="SettingsWindowAnimationStyle" parent="@android:style/Animation.Activity">
        <item name="android:fragmentOpenEnterAnimation">@anim/setup_fragment_open_in</item>
        <item name="android:fragmentOpenExitAnimation">@anim/setup_fragment_open_out</item>
        <item name="android:fragmentCloseEnterAnimation">@anim/setup_fragment_close_in</item>
        <item name="android:fragmentCloseExitAnimation">@anim/setup_fragment_close_out</item>
    </style>

    <!-- Default Settings theme -->
    <style name="Theme.Settings" parent="@style/Theme.Leanback">
        <item name="android:windowBackground">@color/settings_background</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowShowWallpaper">true</item>
        <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
        <item name="preferenceTheme">@style/PreferenceThemeOverlay.v14.Leanback</item>
        <item name="wifi_signal">@drawable/wifi_signal</item>
        <item name="wifi_signal_color">?android:attr/colorAccent</item>
        <item name="wps_color">@color/normal</item>
    </style>

    <style name="Theme.Setup" parent="@style/Theme.Settings">
        <item name="wifi_signal_color">@color/list_item_icon</item>
        <item name="wps_color">@color/list_item_icon</item>
    </style>

    <style name="Theme.Settings.Transparent">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
        <item name="android:backgroundDimEnabled">true</item>
        <item name="android:backgroundDimAmount">0.8</item>
    </style>

    <!-- FormWizard version of Theme.Settings -->
    <style name="Theme.Leanback.FormWizard.Solid" parent="@android:style/Theme.Leanback.FormWizard">
        <item name="android:windowBackground">@color/settings_background</item>
        <item name="android:colorBackgroundCacheHint">@null</item>
        <item name="android:windowShowWallpaper">true</item>
        <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
    </style>

    <!-- Transparent version of FormWizard, shown during Setup -->
    <style name="Theme.Leanback.FormWizard.Transparent" parent="@android:style/Theme.Leanback.FormWizard">
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowShowWallpaper">true</item>
        <item name="android:windowAnimationStyle">@style/SettingsWindowAnimationStyle</item>
        <item name="wps_color">@color/list_item_icon</item>
    </style>

    <style name="Theme.Settings.BluetoothPairing" parent="@style/SettingsStyle.TextAppearanceMedium">
        <item name="android:textSize">@dimen/text_size_description</item>
    </style>

    <style name="HintText">
        <item name="android:fontFamily">sans-serif-thin</item>
        <item name="android:textColor">@color/add_accessory_hint_text_color</item>
        <item name="android:textSize">16sp</item>
    </style>

    <style name="ContentFragment">
        <item name="android:layout_width">match_parent</item>
        <item name="android:layout_height">match_parent</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="Canvas" />

    <style name="Canvas.Text" />

    <style name="Canvas.Text.Dialog" />

    <style name="Canvas.Text.Dialog.Content" />

    <style name="Canvas.Text.Dialog.Content.Title">
        <item name="android:fontFamily">sans-serif-light</item>
        <item name="android:paddingBottom">@dimen/content_fragment_title_text_bottom_padding</item>
        <item name="android:paddingTop">@dimen/content_fragment_title_text_top_padding</item>
        <item name="android:textColor">@color/content_title_text_color</item>
        <item name="android:textSize">@dimen/content_fragment_title_text_size</item>
    </style>

    <style name="Canvas.Text.Dialog.Content.Breadcrumb">
        <item name="android:fontFamily">sans-serif-condensed</item>
        <item name="android:textColor">@color/content_breadcrumb_text_color</item>
        <item name="android:textSize">@dimen/content_fragment_breadcrumb_text_size</item>
    </style>

    <style name="Canvas.Text.Dialog.Content.Description">
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:gravity">end</item>
        <item name="android:textColor">@color/content_description_text_color</item>
        <item name="android:textSize">@dimen/content_fragment_description_text_size</item>
        <item name="android:lineSpacingExtra">3dp</item>
    </style>

    <style name="Canvas.Text.Dialog.List" />

    <style name="Canvas.Image.Dialog.List.Checkmark">
        <item name="android:scaleType">center</item>
        <item name="android:src">@drawable/list_item_checkmark</item>
        <item name="android:visibility">invisible</item>
    </style>

    <style name="Canvas.Text.Dialog.List.Title">
        <item name="android:fontFamily">sans-serif-condensed</item>
        <item name="android:alpha">@dimen/list_item_unselected_text_alpha</item>
        <item name="android:textSize">@dimen/list_item_title_font_size</item>
        <item name="android:textColor">@color/list_item_unselected_text_color</item>
    </style>

    <style name="Canvas.Text.Dialog.List.Description">
        <item name="android:fontFamily">sans-serif-condensed</item>
        <item name="android:alpha">@dimen/list_item_unselected_text_alpha</item>
        <item name="android:textSize">@dimen/list_item_description_font_size</item>
        <item name="android:textColor">@color/list_item_unselected_text_color</item>
        <item name="android:visibility">gone</item>
    </style>

    <style name="Canvas.Image" />

    <style name="Canvas.Image.Dialog" />

    <style name="Canvas.Image.Dialog.Content" />

    <style name="Canvas.Image.Dialog.Content.Icon">
        <item name="android:maxHeight">@dimen/content_fragment_max_icon_height</item>
        <item name="android:scaleType">center</item>
        <item name="android:src">@drawable/content_fragment_default_icon</item>
    </style>

    <style name="Canvas.Image.Dialog.List" />

    <style name="Canvas.Image.Dialog.List.Icon">
        <item name="android:scaleType">center</item>
        <item name="android:visibility">gone</item>
    </style>

    <style name="SyncSwitchPreference" parent="LeanbackPreference">
        <item name="android:widgetLayout">@layout/preference_widget_sync_toggle</item>
    </style>

    <style name="Setup" />

    <style name="Setup.Description" />

    <style name="Setup.Action" />

    <style name="Setup.Description.Title">
        <item name="android:fontFamily">sans-serif-light</item>
        <item name="android:textColor">?android:attr/textColorPrimary</item>
        <item name="android:textSize">36sp</item>
    </style>

    <style name="Setup.Description.Description">
        <item name="android:fontFamily">sans-serif</item>
        <item name="android:textSize">@dimen/setup_description_text_size</item>
        <item name="android:textColor">?android:attr/textColorPrimary</item>
    </style>

    <style name="Setup.Action.ListItem">
        <item name="android:fontFamily">sans-serif-condensed</item>
        <item name="android:textColor">@color/list_item</item>
        <item name="android:textSize">@dimen/setup_list_item_text_size</item>
    </style>

    <style name="Setup.Action.TextInput">
        <item name="android:fontFamily">sans-serif-condensed</item>
        <item name="android:textColor">@color/list_item</item>
        <item name="android:textSize">@dimen/setup_list_item_text_size</item>
    </style>

    <style name="Setup.Action.TextInput">
        <item name="android:fontFamily">sans-serif-condensed</item>
        <item name="android:background">@drawable/setup_text_input_underline</item>
        <item name="android:textCursorDrawable">@drawable/setup_text_input_cursor</item>
        <item name="android:textColor">@color/setup_list_item_focused</item>
        <item name="android:textSize">@dimen/setup_list_item_text_size</item>
    </style>

    <style name="Setup.ProgressTitle">
        <item name="android:fontFamily">sans-serif-light</item>
        <item name="android:textColor">@color/activity_progress_text</item>
        <item name="android:textSize">@dimen/activity_progress_title_text_size</item>
    </style>

</resources>