title: How to set status bar tint color in layout/style XML?
body: <p>I'm using the <code>windowTranslucentStatus</code> in my app theme.</p>
  
  <p>Now, also want to tint the status bar to match my ActionBar.</p>
  
  <p>Currently I'm using the <a href="https://github.com/jgilfelt/SystemBarTint" rel="nofollow noreferrer" title="SystemBarTint">SystemBarTint</a> library, which is mostly fine except of one problem:</p>
  
  <p>When the application launches, the OS shows a themed mockup layout as a splash image during the actual inflation. At that stage, there is no status bar tinting yet.</p>
  
  <p>It looks like that (Took me 5 times to capture this screenshot during app launch):
  <img src="https://i.stack.imgur.com/DnHUc.png" alt="No tinting"></p>
  
  <p>Only after the activity is fully loaded the tint is applied. This is a problem for me and I'm looking for a way to somehow show the full branding on the status bar during launch.</p>
  
  <p>I have read <a href="http://android-developers.blogspot.co.il/2009/03/window-backgrounds-ui-speed.html" rel="nofollow noreferrer">This blog post</a> Which explains how you can actually control what will be displayed during launch by specifying a <code>windowBackground</code>.</p>
  
  <p>I set the <code>windowBackground</code> to my main color -> then the entire screen painted pink. </p>
  
  <p>I set <code>background</code> property on my activity's root element to white, but then again during launch the screen is pink, and only after the activity is loaded the content's background clears to white. This OK but not ideal.</p>
  
  <p>I know I can create a bitmap with a white background and a color where the status bar should be, but then it won't be theme-able, meaning I'll have to create a new bitmap if the main color changes.</p>
  
  <p>So to sum it up my question is this:  Do you know a way to set a tint color for the status bar (in KitKat) in XML?</p>
  
  <p>Alternatively, is it possible to create an XML drawable that will contain a colored bar at the top with a fixed height?</p>