title: How to create custom spinner like border around the spinner with down triangle on the right side?
body: <p>I want to develop custom spinner like line around spinner with triangle at right bottom corner.<br>
  like following image</p>
  
  <p><img src="https://i.stack.imgur.com/UPILD.jpg" alt="enter image description here"></p>
  
  <p>For above fig I wrote my custom spinner like a</p>
  
  <p>spinner.xml</p>
  
  <pre><code> &lt;Spinner android:background="@drawable/spinner_background"/&gt;
  </code></pre>
  
  <p>spinner_background.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;item android:state_pressed="true"
        android:drawable="@drawable/spinner_ab_pressed_new_theme_bs"&gt;
      &lt;shape&gt;
  
          &lt;solid 
              android:color="@color/White" /&gt;
  
          &lt;corners android:radius="3dp" /&gt;
  
          &lt;padding 
              android:bottom="10dp" 
              android:left="10dp" 
              android:right="10dp" 
              android:top="10dp" /&gt;
  
           &lt;stroke 
              android:width="2dp" 
              android:color="@color/skyblue" /&gt;
      &lt;/shape&gt;
   &lt;/item&gt;
   &lt;!-- spinner_ab_default_new_theme_bs -&gt; this image for corner triangle --&gt;
  &lt;item
  
      android:drawable="@drawable/spinner_ab_default_new_theme_bs" &gt;
      &lt;shape&gt;
          &lt;solid
              android:color="@color/White"&gt;
          &lt;/solid&gt;
  
          &lt;corners android:radius="3dp" /&gt;
  
          &lt;padding
              android:bottom="10dp" 
              android:left="10dp" 
              android:right="10dp" 
              android:top="10dp" /&gt;
           &lt;stroke 
              android:width="2dp" 
              android:color="@color/gray"/&gt;
      &lt;/shape&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p></p>
  
  <p>And I got output like following image<br>
  <img src="https://i.stack.imgur.com/WkpHe.jpg" alt="enter image description here"></p>
  
  <p>I tried lot but not achieve my goal please anybody have solution to develop spinner.<br>
  like above first one image.</p>