Xml文件  |  48行  |  1.87 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
/*
* Copyright (C) 2008 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="LivePickerTheme" parent="@android:style/Theme.DeviceDefault.Settings" />

    <style name="Preview" parent="@style/Theme.AppCompat">

        <!-- Set no title and no action bar because we use a toolbar instead. -->
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:windowContentOverlay">@null</item>

        <!-- Set status bar and navigation buttons to be translucent. -->
        <item name="android:colorPrimaryDark">@color/translucent_black</item>
        <item name="android:navigationBarColor">@color/translucent_black</item>

        <item name="colorAccent">@*android:color/accent_device_default_dark</item>

        <item name="android:windowDisablePreview">true</item>
    </style>

    <style name="TranslucentToolbarStyle" parent="@style/Widget.AppCompat.Toolbar">
        <item name="android:background">@color/translucent_black</item>
        <item name="android:theme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>
    </style>

    <style name="AttributionPaneTitle" parent="@android:style/TextAppearance.Material.Subhead"/>

</resources>