color the statusbar in android splash screen
<p>I added a splash screen to my android app and I'd like to give the status bar a color when showing.</p>

<p>This is the content of the file under drawable:</p>

<pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;

    &lt;item
        android:drawable="@color/colorPrimary" /&gt;

    &lt;item&gt;
        &lt;bitmap
            android:gravity="center"
            android:src="@mipmap/ic_home"/&gt;
    &lt;/item&gt;

&lt;/layer-list&gt;
</code></pre>

<p>and I added this style:</p>

<pre><code>&lt;style name="SplashTheme" parent="Theme.AppCompat.NoActionBar"&gt;
    &lt;item name="android:windowBackground"&gt;@drawable/splashscreen&lt;/item&gt;
&lt;/style&gt;
</code></pre>