<resources>

    <!-- Base application theme. -->
    <style name="NoActionBarTheme" parent="Theme.AppCompat.DayNight.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
        <item name="toolbarStyle">@style/MyToolBar</item>
    </style>

    <style name="NoActionBarThemeRed" parent="Theme.AppCompat.DayNight.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/red_light</item>
        <item name="colorPrimaryDark">@color/red_dark</item>
        <item name="colorAccent">@color/colorPrimary</item>
        <item name="toolbarStyle">@style/MyToolBar</item>
    </style>

    <style name="NoActionBarThemeBlue" parent="Theme.AppCompat.DayNight.NoActionBar">
        <!-- Customize your theme here. -->
        <item name="colorPrimary">@color/blue_alipay</item>
        <item name="colorPrimaryDark">@color/blue_alipay_dark</item>
        <item name="colorAccent">@color/purple</item>
        <item name="toolbarStyle">@style/MyToolBar</item>
    </style>

    <!--<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        &lt;!&ndash; Customize your theme here. &ndash;&gt;
        <item name="colorPrimary">@color/colorPrimary</item>
        <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
        <item name="colorAccent">@color/colorAccent</item>
    </style>-->

    <style name="MyToolBar" parent="Widget.AppCompat.Toolbar">
        <!--ToolBar左边边距-->
        <item name="contentInsetStart">@dimen/size_zero</item>
    </style>

    <style name="NoActionBarTheme.Welcome">
        <!--<item name="android:windowIsTranslucent">true</item>-->
        <!--用下面这个属性代替windowIsTranslucent，否则在8.0上配合portrait属性会导致闪退-->
        <item name="android:windowDisablePreview">true</item>
        <item name="android:windowFullscreen">true</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowActionBar">false</item>

        <!--解决全屏的时候底部content和导航栏之间有一根白线的现象-->
        <item name="android:windowContentOverlay">@null</item>
        <item name="android:windowBackground">@color/white</item>
    </style>

    <style name="dialog" parent="@android:style/Theme.Dialog">
        <item name="android:windowFrame">@null</item>
        <item name="android:windowIsFloating">true</item>
        <item name="android:windowIsTranslucent">false</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowBackground">@android:color/transparent</item>
        <item name="android:backgroundDimEnabled">true</item>
    </style>

    <style name="NoActionBarTheme.PhotoDetailTheme">
        <item name="colorPrimary">#000000</item>
        <item name="colorPrimaryDark">#000000</item>
        <!--解决滑动时不透明的bug-->
        <item name="android:windowBackground">@android:color/transparent</item>
        <!--<item name="android:windowDisablePreview">true</item>-->
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowNoTitle">true</item>
    </style>

    <!--也可以通过配置动画来实现是切换动画，只不过没有代码灵活-->
    <!--<style name="AppThemeDark" parent="Theme.AppCompat">
        <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
    </style>
    <style name="WindowAnimationTransition">
        <item name="android:windowEnterAnimation">@android:anim/fade_in</item>
        <item name="android:windowExitAnimation">@android:anim/fade_out</item>
    </style>-->
</resources>
