Solve the problem that the system bar will turn blue at the moment Android starts APP

  • 2021-09-12 02:01:24
  • OfStack

The system bar has been processed, but the system bar will still be blue for 1 moment when APP is started. The solution is very simple. In res/values/style, put the following code


<!-- 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>

In @color/colorPrimaryDark

Change to @color/white

Or any other color will do

Summarize


Related articles: