Using a custom header in android
<p>I am using a custom header in android. The issue is when the activity loads up for about 1s the default brown/blackish header is shown. How do I prevent this from happening?</p>

<p>Relevant xml:</p>

<pre><code>&lt;resources&gt;
    &lt;style name="CustomWindowTitleBackground"&gt;
        &lt;item name="android:background"&gt;#00693331&lt;/item&gt;
    &lt;/style&gt;

    &lt;style name="CustomTheme" parent="android:Theme"&gt;
        &lt;item name="android:windowTitleSize"&gt;70dip&lt;/item&gt;
        &lt;item name="android:windowTitleBackgroundStyle"&gt;@style/CustomWindowTitleBackground&lt;/item&gt;

    &lt;/style&gt;
&lt;/resources&gt;
</code></pre>

<p>I am inflating the layout in java. </p>
