breautek commented on issue #1880:
URL: 
https://github.com/apache/cordova-android/issues/1880#issuecomment-3819540320

   Not 100% sure if this will work but I believe you can use the 
[AndroidPostSplashScreenTheme](https://cordova.apache.org/docs/en/latest/core/features/splashscreen/index.html#androidpostsplashscreentheme)
 to set a custom theme, which will become effective once the native 
splash-screen gets dismissed.
   
   ```xml
   <preference name="AndroidPostSplashScreenTheme" 
value="@style/Theme.MyCustomTheme"/>
   ```
   
   You can supply a theme file via 
[resource-file](https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#resource-file):
   
   ```xml
   <platform name="android">
     <resource-file src="MyCustomTheme.xml" 
target="res/values/MyCustomTheme.xml" />
   </platform>
   ```
   
   `<platform>` is never merged, so use your existing `<platform 
name="android">` block if you already have one. The `src` attribute is relative 
to the `config.xml` if I recall correctly. 
   
   The theme file would look something like:
   
   ```xml
   <?xml version='1.0' encoding='utf-8'?>
   <resources xmlns:tools="http://schemas.android.com/tools";>
       <style name="Theme.MyCustomTheme" parent="Theme.AppCompat.NoActionBar">
           <item name="android:windowLayoutInDisplayCutoutMode">always</item>
       </style>
   </resources>
   ```
   
   Note that the parent `Theme.AppCompat.NoActionBar` is important.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to