title: Android Linear Gradient Drawable
body: <p>I want to make <code>GradientDrawable</code> for background like the image below.</p>
  
  <p><a href="https://i.stack.imgur.com/gjVvH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gjVvH.png" alt="enter image description here"></a></p>
  
  <p><code>Linear Gradient</code> with <strong>same</strong> color in the <strong>top</strong> and <strong>bottom</strong>. </p>
  
  <p>I made <code>gradient drawable</code> with <code>start</code>, <code>center</code> and <code>end</code> colors but couldn't set the size of center color. </p>
  
  <p>I also tried <code>&lt;Layer-list&gt;</code> with 2 gradient shape-s but one overlays over the other and either I have gradient on the top or on the bottom. </p>
  
  <p>Can anyone help me ?</p>