title: How to merge two shapes in a single gradient android
body: <p><a href="https://i.stack.imgur.com/n5Yaz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n5Yaz.png" alt="enter image description here"></a></p>
  
  <p>how to merge border or single gradient in both.how to possible??</p>
  
  <p>Already tried this background shape as below :-
  <strong>shape.xml</strong></p>
  
  <pre><code>&lt;layer-list xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  &lt;item
      android:top="175dp"&gt;
      &lt;shape android:shape="oval"&gt;
          &lt;gradient
              android:angle="135"
              android:startColor="#f56f2c"
              android:endColor="#fa9f46"/&gt;
  
      &lt;/shape&gt;
  
  &lt;/item&gt;
  &lt;item
      android:bottom="40dp"
      &gt;
      &lt;shape android:shape="rectangle"&gt;
          &lt;gradient
              android:angle="135"
              android:startColor="#f56f2c"
              android:endColor="#fa9f46"/&gt;
      &lt;/shape&gt;
   &lt;/item&gt;
  &lt;/layer-list&gt;
  </code></pre>