title: How to add left drawable in Spinner View in Android
body: <p>Hello I am trying to add left drawable in <code>Spinner</code> but I didn't find any propery for this as you do same in <code>EditText</code> using <code>android:drawableLeft="@drawable/password_drawable"</code>. Is there any correct way to achieve same in <code>Spinner</code> in Android.</p>
  
  <p>Here in my case there should be left drawable only this state which I gave in the screenshot, when user click on the Spinner I don't want to have left drawable there in open drop down list in <code>Spinner</code></p>
  
  <p>I'm trying like this where there is no such attribute</p>
  
  <pre><code>&lt;Spinner
      android:id="@+id/selectSpinner"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="@dimen/sign_up_views_vertical_top_margin"
      android:background="@drawable/edittext_border"
       /&gt;
  </code></pre>
  
  <p>I want something like below screenshot</p>
  
  <p><img src="https://i.stack.imgur.com/gyQtf.png" alt="enter image description here"></p>
  
  <p>Currently it is looking like below</p>
  
  <p><img src="https://i.stack.imgur.com/bROq0.png" alt="enter image description here"></p>
  
  <p>and when I set the background of the <code>Spinner</code> then it looks like</p>
  
  <pre><code>&lt;Spinner
      android:id="@+id/selectSpinner"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="@dimen/sign_up_views_vertical_top_margin"
      android:background="@drawable/selectone_drawable"
      android:entries="@array/select_type" /&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/od2sn.png" alt="enter image description here"></p>
  
  <p>Thanks in advance</p>