Search
Close this search box.

How to remove gray screen before splash screen – Cordova?

Amitpal Singh
Amitpal Singh
February 11, 2023

How to remove gray screen before splash screen – Cordova?

Go to this file location first:

/Users/User/Development/project/platforms/android/app/src/main/res/values/styles.xml 

Add the below given code to your style.xml file given in:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="SplashTheme"  parent="Theme.AppCompat.Light.NoActionBar">
      <item name="android:windowIsTranslucent">true</item>
      <item name="android:windowBackground">@android:color/transparent</item>
      <item name="android:windowContentOverlay">@null</item>
      <item name="android:windowNoTitle">true</item>
      <item name="android:windowIsFloating">false</item>
     <item name="android:backgroundDimEnabled">false</item>
    
</style>
</resources> 

then edit this AndroidManifest.xml File and add : android:theme=”@style/SplashTheme” to the activity tag

This worked like a charm to me!

Code given here & Credit goes to: Nsamba Isaac

Share this post:

How to Attribute?

Lorem ipsum is typically a corrupted version of De finibus bonorum et malorum, a 1st-century BC text by the Roman statesman and philosopher Cicero.
for Example: Website, Social Media, Blogs, ebooks , newsletter, etc.
Lorem ipsum is typically a corrupted version of De finibus bonorum et malorum, a 1st-century BC text by the Roman statesman and philosopher Cicero.
Copied!

Got a Question? Check out our FAQ Section.

Your action, our appreciation

It encourage us to give you more valuable content on website.