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"?> <resources> <style name="Theme.Default" parent="@android:style/Theme.DeviceDefault.NoActionBar"> <item name="android:windowBackground">@color/background</item> <item name="android:colorPrimaryDark">@color/statusbar</item> </style> </resources> </pre>
while background and statusbar are set in a separate colors.xml using
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="background">#1a237e</color> <color name="statusbar">#060f6a</color> </resources>
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.
This forum is for Phonegap Build a cloud-based build service by Adobe/Phonegap. Your question has been cross-posted (or tagged) to this forum. I'll try to get his fixed.
Jesse
It would be really nice if you could find a solution! Still wondering why they added an activity that cannot be customized/themed...
Would probably be worth creating an issue in the Apache Cordova Jira.