首先我们打开配置文件
android:roundIcon="@drawable/ic_launcher" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".MainActivity">我们可以看到
android:theme="@style/AppTheme">
接下来进入我们可以看到@style/AppTheme
<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style> </resources>其中<item name="colorPrimaryDark">@color/colorPrimaryDark</item>即为状态栏的颜色,可通过手动改变颜色即可