You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/20 09:42:59 UTC

[GitHub] [cordova-plugin-splashscreen] MVDeveloper1 commented on issue #197: Android: White screen before splash screen

MVDeveloper1 commented on issue #197: Android: White screen before splash screen
URL: https://github.com/apache/cordova-plugin-splashscreen/issues/197#issuecomment-555924079
 
 
   > I have resolved this issue by using a new android theme style
   > 
   > 1. Create a new style file in path `\platforms\android\res\values\`    `styles.xml`
   > 2. `styles.xml`
   > 
   > ```
   > <?xml version="1.0" encoding="utf-8"?>
   > <resources>
   >    <style name="Theme.Transparent" parent="android:style/Theme.DeviceDefault.Light.NoActionBar">
   >       <item name="android:windowDisablePreview">true</item>
   >   </style>
   > </resources>
   > ```
   > 
   > As I'm using `Theme.DeviceDefault.Light.NoActionBar` in `AndroidManifest.xml`, so I set parent theme as above.
   > 
   > 1. Update theme in `AndroidManifest.xml`
   >    `<application .... android:theme="@style/Theme.Transparent"`
   > 2. Done
   > 
   > @janpio Did you able to reproduce it? if possible please review and update your source code to fix it.
   
   
   
   > I have resolved this issue by using a new android theme style
   > 
   > 1. Create a new style file in path `\platforms\android\res\values\`    `styles.xml`
   > 2. `styles.xml`
   > 
   > ```
   > <?xml version="1.0" encoding="utf-8"?>
   > <resources>
   >    <style name="Theme.Transparent" parent="android:style/Theme.DeviceDefault.Light.NoActionBar">
   >       <item name="android:windowDisablePreview">true</item>
   >   </style>
   > </resources>
   > ```
   > 
   > As I'm using `Theme.DeviceDefault.Light.NoActionBar` in `AndroidManifest.xml`, so I set parent theme as above.
   > 
   > 1. Update theme in `AndroidManifest.xml`
   >    `<application .... android:theme="@style/Theme.Transparent"`
   > 2. Done
   
   IT WORKED LIKE A CHARM! I've been looking for the solution for a long time, but now I have found it. Thanks a lot!
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org