title: create vertical gradient in android
body: <p>I want to create vertical gradient separator in android </p>
  
  <p>I am <code>able to create for horizontal separator</code> but <code>in vertical gradient nothing appears</code> </p>
  
  <p><em>code for horizontal</em></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"&gt;
         &lt;gradient       
                  android:startColor="#DEDEDE"
                  android:centerColor="#F52578"
                  android:endColor=  "#DEDEDE"
        /&gt; 
  &lt;/shape&gt;
  </code></pre>
  
  <p>this is how i use in my project</p>
  
  <pre><code>  &lt;View 
              android:background="@drawable/divider_gradient"
              android:layout_width="fill_parent"
              android:layout_height="1.0px"
  
       /&gt;
  </code></pre>
  
  <blockquote>
    <p>i tried layout_width="1dp" and layout_height="fill_parent" for
    vertical separator but nothing appears</p>
  </blockquote>