4 Replies Latest reply on Mar 17, 2016 10:30 AM by martinb77004568

    Status bar color during splash screen

    martinb77004568 Level 2

      I am using pgb cli-6.0.0 and the latest splash screen plugin (https://github.com/apache/cordova-plugin-splashscreen).


      When adding the folder structure locales/android/values/themes.xml , I can define a custom theme. Here, I specified the following:

      <?xml version="1.0" encoding="utf-8"?>
          <style name="Theme.Default" parent="@android:style/Theme.DeviceDefault.NoActionBar">
              <item name="android:windowBackground">@color/background</item>
              <item name="android:colorPrimaryDark">@color/statusbar</item>

      while background and statusbar are set in a separate colors.xml using


      <?xml version="1.0" encoding="utf-8"?>
          <color name="background">#1a237e</color>
          <color name="statusbar">#060f6a</color>



      When starting the app, everything looks nice (the colors get applied). But when the splash screen image shows up, the status bar suddenly turns black. When the splash screen gets hidden again, the status bar turns #060f6a like before. My question: If there any way to get the color applied while displaying the splash screen image? Using the status bar plugin didn't help.