title: Glossy gradient with android drawable xml
body: <p>I'm trying to bring out a glossy xml drawable gradient as a background to a layout. I am already using the start color and end color boring linear gradient. </p>
  
  <pre><code>&lt;item&gt;
      &lt;shape&gt;
          &lt;gradient
              android:angle="90"
              android:startColor="#242424"
              android:endColor="#4e4e4e"
              android:type="linear" /&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>Is there any way to control its range of flow? Please some one help.</p>
  
  <p><strong>Edited:</strong></p>
  
  <p>Ok, I have done a little hack around method to get a nice glossy looking title bar,</p>
  
  <blockquote>
    <p>Linear Layout (with a gradation - drawable background, specifying all
    the start and end color values separately) Over this are the icons, (I
    used Image buttons with transparent BG), and over this another Relative Layout (with may
    be a drawable gradient or a fixed, grey color - for glossiness -
    android:background="#20f0f0f0" ) Here 20 is defining the Alpha value.</p>
  </blockquote>
  
  <p>P.S, This might not be a correct work around, but I'm quiet satisfied with this because switching themes according to clients needs is much faster when compared to 9 patch PNG files (hey, BTW this is just my opinion on it)</p>
  
  <p>And this <a href="http://www.dibbus.com/2011/08/even-more-gradient-buttons-for-android/" rel="noreferrer">link</a> is so informative on this,</p>