Android splash screen does not display image full screen
<p>I have the code as below in my Android app.</p>

<p>My res/values/styles.xml:</p>

<pre><code>   &lt;style name="FullScreen" parent="@style/Theme.AppCompat.Light"&gt;
   &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
   &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
   &lt;item name="android:windowFullscreen"&gt;true&lt;/item&gt;
   &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
   &lt;item       name="android:windowBackground"&gt;@drawable/background_splash&lt;/item&gt;
   &lt;/style&gt;
</code></pre>

<p>res/drawable/background_splash.xml:</p>

<pre><code>  &lt;item

     android:drawable="@color/colorPrimaryDark"/&gt;

   &lt;item&gt;
      &lt;bitmap
        android:gravity="center"
        android:src="@mipmap/image1"/&gt;
   &lt;/item&gt;
</code></pre>

<p>AndroidManifest.xml:</p>

<pre><code>    &lt;activity
      android:name=".SplashActivity"
      android:theme="@style/FullScreen"&gt;
    &lt;intent-filter&gt;
      &lt;action android:name="android.intent.action.MAIN"/&gt;

      &lt;category android:name="android.intent.category.LAUNCHER"/&gt;
    &lt;/intent-filter&gt;
</code></pre>

<p>SplashActivity.java:</p>

<pre><code>    public class SplashActivity extends AppCompatActivity {

    private static int SPLASH_TIME_OUT = 5000;

   @Override
   protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    //setContentView(R.layout.activity_splash);

    new Handler().postDelayed(new Runnable() {

        @Override
        public void run() {
            Intent i = new Intent(SplashActivity.this,  MainActivity.class);
            startActivity(i);
            finish();
        }
        }, SPLASH_TIME_OUT);
       }
    }
</code></pre>

<p>I have the image1 with appropriate resolution/size present in the res folder. But the splash screen does not display the image covering full screen but displays with reduced size only some part of the screen. Can you please advice what needs to be done. I went through some of the suggestions present on some sites but it did not help.</p>