themes.xml 2.3 KB
<resources xmlns:tools="http://schemas.android.com/tools">
    <!-- Base application theme. -->
    <style name="Theme.SecurityTrainMaster" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Primary brand color. -->
        <item name="colorPrimary">@color/purple_500</item>
        <item name="colorPrimaryVariant">@color/purple_700</item>
        <item name="colorOnPrimary">@color/white</item>
        <!-- Secondary brand color. -->
        <item name="colorSecondary">@color/teal_200</item>
        <item name="colorSecondaryVariant">@color/teal_700</item>
        <item name="colorOnSecondary">@color/black</item>
        <!-- Status bar color. -->
        <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
        <!-- Customize your theme here. -->
    </style>

    <style name="Theme.SecurityTrainMaster.Trans" parent="Theme.AppCompat.Light.NoActionBar">
        <!-- Primary brand color. -->
        <item name="android:statusBarColor" tools:targetApi="l">@android:color/transparent</item>
        <item name="android:background">@android:color/transparent</item>
        <item name="android:windowIsTranslucent">true</item>
        <item name="android:windowTranslucentStatus" >true</item>
        <item name="android:windowNoTitle">true</item>
        <item name="android:windowActionBar">true</item>
        <item name="android:windowAnimationStyle">@android:style/Animation.Translucent</item>
        <!-- Customize your theme here. -->
    </style>

    <style name="Theme.SecurityTrainMaster.Launcher">
        <item name="colorPrimaryVariant">@android:color/transparent</item>
        <!--无窗口状态栏-->
        <item name="windowActionBar">false</item>
        <!--        &lt;!&ndash;无标题&ndash;&gt;-->
        <!--        <item name="android:windowNoTitle">true</item>-->
        <!--        &lt;!&ndash;无标题&ndash;&gt;-->
        <!--        <item name="windowNoTitle">true</item>-->
        <!--        &lt;!&ndash;无窗口半透明导航&ndash;&gt;-->
        <item name="android:windowTranslucentNavigation">false</item>
        <!--        &lt;!&ndash;窗口半透明状态&ndash;&gt;-->
        <item name="android:windowTranslucentStatus">false</item>
        <item name="android:background">@drawable/launcher</item>
    </style>
</resources>