I created splash screen for the app using activity theme. That's effective way to display it in loading time, recommended by Google developers (<https://plus.google.com/+IanLake/posts/SW7F2CJvAmU>). 

I created splash.xml in drawable

```
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@color/ColorPrimary" />
    <item>
        <bitmap
            android:gravity="center"
            android:src="@drawable/splash" />
    </item>
</layer-list>

```

created theme with it

```
<style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:windowBackground">@drawable/splash</item>
</style>

```

and applied this theme to activity in manifest

```
    <activity
        android:name=".SplashActivity"
        android:launchMode="singleTop"
        android:theme="@style/SplashTheme">

```

Now i need to customize my splash screen from code. I need to change bitmap and color, or add another item to layer-list. How to do it?