I added a splash screen to my Android app, and I would like the status indicator to display color when displayed.
This is the contents of the file under drawable:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@color/colorPrimary" /> <item> <bitmap android:gravity="center" android:src="@mipmap/ic_home"/> </item> </layer-list>
and I added this style:
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar"> <item name="android:windowBackground">@drawable/splashscreen</item> </style>
source share