Xml文件  |  92行  |  4.06 KB

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 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>
    <style name="Theme.SettingsBase" parent="@android:style/Theme.Material.Settings" />

    <attr name="WifiSignalColor" format="reference" />

    <style name="CarSettingTheme" parent="Theme.Car.Light.NoActionBar">
        <item name="wifi_signal">@drawable/wifi_signal</item>
        <item name="WifiSignalColor">?android:attr/colorAccent</item>
        <item name="android:windowBackground">@color/car_card</item>
        <item name="android:windowAnimationStyle">@style/SettingAnimationStyle</item>
        <item name="android:borderlessButtonStyle">@style/Widget.Car.Settings.ActionBar.Button.Borderless.Colored</item>
    </style>

    <style name="SettingAnimationStyle">
        <item name="android:windowEnterAnimation">@anim/trans_fade_in</item>
        <item name="android:windowExitAnimation">@anim/trans_fade_out</item>
    </style>

    <style name="ActionBarStyle.Car" parent="Widget.Car.Toolbar">
        <item name="actionBarSize">@dimen/car_app_bar_height</item>
    </style>

    <style name="TrimmedHorizontalProgressBar" parent="android:Widget.Material.ProgressBar.Horizontal">
        <item name="android:indeterminateDrawable">@drawable/progress_indeterminate_horizontal_material_trimmed</item>
        <item name="android:minHeight">3dp</item>
        <item name="android:maxHeight">3dp</item>
    </style>

    <style name="ListIcon.ActionBar" parent="ListIcon">
        <item name="android:layout_gravity">center</item>
        <item name="android:src">@drawable/ic_arrow_back</item>
    </style>

    <style name="SettingsListHeader" parent="TextAppearance.Car.Body2">
        <item name="android:textColor">@color/car_accent</item>
    </style>

    <style name="Widget.Car.Settings.ActionBar.Button.Borderless.Colored"
           parent="Widget.Car.Button.Borderless.Colored">
        <item name="android:minWidth">@dimen/car_button_min_width</item>
        <item name="android:fontFamily">roboto-regular</item>
        <item name="android:textColor">@color/car_accent</item>
    </style>

    <style name="SetupWizardButton.Negative" parent="@style/SuwGlifButton.Secondary">
        <!-- Negative margin to offset for padding of the button itself. We want the label to be
             aligned with the text above it -->
        <item name="android:layout_marginStart">-16dp</item>
    </style>

    <style name="SetupWizardButton.Positive" parent="@style/SuwGlifButton.Primary" />

    <!-- Style for security lock pattern. -->
    <style name="LockPatternStyle">
        <item name="*android:regularColor">@color/lock_pattern_regular</item>
        <item name="*android:successColor">@color/lock_pattern_success</item>
        <item name="*android:errorColor">?android:attr/colorError</item>
    </style>

    <style name="PinPadKey">
        <item name="android:layout_width">@dimen/pin_pad_key_width</item>
        <item name="android:layout_height">@dimen/pin_pad_key_height</item>
        <item name="android:layout_margin">@dimen/pin_pad_key_margin</item>
        <item name="android:gravity">center</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textSize">@dimen/car_body1_size</item>
        <item name="android:textColor">@color/car_body3</item>
        <item name="android:clickable">true</item>
        <item name="android:background">@drawable/car_button_ripple_background</item>
    </style>

    <style name="SettingList">
        <item name="gutter">both</item>
    </style>
</resources>