mohammadrafigh commented on issue #266:
URL: 
https://github.com/apache/cordova-plugin-statusbar/issues/266#issuecomment-1913584525

   @jcesarmobile I'm currently not able to provide a sample app due to lack of 
enough free time. But I can approve that the reason of this issue is related to 
the changes on how Splashscreen works as @TiBz0u and @jondspa mentioned above. 
Splashscreen plugin now starts the main activity of the app with a predefined 
default theme using `AndroidPostSplashScreenTheme` property. So the clean way 
to handle that is to add these inside the Android platform of config.xml:
   (fine tune with your paths and your needs)
   
   ```
   <!-- Load our own theme to style navigation bar for API >= 27 -->
   <preference name="AndroidPostSplashScreenTheme" 
value="@style/MyCustomTheme"/>
   <!-- Our theme doesn't include anything special for API < 27 -->
   <config-file target="res/values/themes.xml" parent="/resources/">
       <style name="MyCustomTheme" parent="Theme.AppCompat.NoActionBar"></style>
   </config-file>
   <!-- Copy our own theme to style navigation bar for API >= 27 -->
   <resource-file src="res/theme/android/values-v27/themes.xml" 
target="app/src/main/res/values-v27/themes.xml" />
   ```
   
   then add a `themes.xml` file under the provided path, like this:
   
   ```
   <?xml version="1.0" encoding="utf-8"?>
   <resources>
     <style name="MyCustomTheme" parent="Theme.AppCompat.NoActionBar">
       <item name="android:statusBarColor">#002860</item>
     </style>
   </resources>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to