title: themed splash screen without setContentView
body: <p>I added a splash screen to my app, without <code>setContentView</code> (to avoid unnecessary delays); but I can't seem to find how to change that splash screen depending on an user selected app theme.</p>
  
  <p>I tried to use <code>setTheme</code> before <code>onCreate</code> on the corresponding activity, but it doesn't work. I also tried to use theme attributes (<code>?android:attr/colorPrimary</code>), but it doesn't work either.</p>
  
  <p>I searched, but can't seem to find anything about changing the theme dynamically.</p>
  
  <p>Here is how my activity is reference in the manifest :</p>
  
  <pre><code>&lt;activity
          android:name=".activities.SplashActivity"
          android:theme="@style/SplashTheme"&gt;
  
          ...
  
      &lt;/activity&gt;
  </code></pre>
  
  <p>How my style is defined:</p>
  
  <pre><code>&lt;style name="SplashTheme" parent="Theme.AppCompat.NoActionBar"&gt;
      &lt;item name="android:windowBackground"&gt;@drawable/splash&lt;/item&gt;
      &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>And how my drawable is defined:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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_beacon" /&gt;
      &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>
  
  <p>How can I change the background color of the splash screen depending on the user selected theme ?</p>