Android AndroidStudio环境下控制状态栏颜色

style.xml

<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
        <!-- colorPrimary is used for the default action bar background -->
        <item name="colorPrimary">#00ff00</item>
        <!-- colorPrimaryDark is used for the status bar -->
        <item name="colorPrimaryDark">#ff00ff</item>
    </style>

</resources>

AndroidManifest.xml

android:theme="@style/AppTheme"

你可能感兴趣的:(Android AndroidStudio环境下控制状态栏颜色)