title: Change Spinner dropdown icon
body: <p>The solutions I found to change the spinner dropdown icon where all:</p>
  <p><strong>1. create a custom drawable</strong></p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;selector xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
      &lt;item android:drawable=&quot;@drawable/vector_drawable_ic_dropdown_black&quot; android:state_focused=&quot;true&quot; android:state_pressed=&quot;false&quot; /&gt;
      &lt;item android:drawable=&quot;@drawable/vector_drawable_ic_dropdown_black&quot; android:state_focused=&quot;true&quot; android:state_pressed=&quot;true&quot; /&gt;
      &lt;item android:drawable=&quot;@drawable/vector_drawable_ic_dropdown_black&quot; android:state_focused=&quot;false&quot; android:state_pressed=&quot;true&quot; /&gt;
      &lt;item android:drawable=&quot;@drawable/vector_drawable_ic_dropdown_black&quot; /&gt;
  &lt;/selector&gt;
  </code></pre>
  <p><strong>2. Set the drawable as the spinner background:</strong></p>
  <pre><code>&lt;Spinner
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginBottom=&quot;16dp&quot;
      android:background=&quot;@drawable/custom_spinner_icon&quot;
      android:gravity=&quot;center&quot;
      android:paddingBottom=&quot;8dp&quot;
      android:paddingTop=&quot;8dp&quot;
      android:textColor=&quot;@color/textcolorprimary&quot; /&gt;
  </code></pre>
  <p>And the result is:</p>
  <p><a href="https://i.stack.imgur.com/lIAFx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lIAFx.png" alt="enter image description here" /></a></p>
  <p>As you can see this is not an acceptable solution since the icon needs to be right aligned and not stretched.</p>
  <p>What can I do to make the icon not stretch and align it right?</p>
  <p><strong>EDIT</strong></p>
  <p>Since there are no working solutions yet I guess I have to specify my question.
  This is how my Spinner looks using the standard theme:</p>
  <pre><code>&lt;Spinner
      android:id=&quot;@+id/products_download_spinner_language&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;wrap_content&quot;
      android:layout_marginBottom=&quot;16dp&quot;
      android:gravity=&quot;center&quot;
      android:paddingBottom=&quot;8dp&quot;
      android:paddingTop=&quot;8dp&quot;
      android:textColor=&quot;@color/textcolorprimary&quot;
      android:theme=&quot;@android:style/Theme.Holo.Light.DarkActionBar&quot; /&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/kruzq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kruzq.png" alt="enter image description here" /></a></p>
  <p>And everything I want (it is really not much I guess) is changing the arrow. I don't want that arrow in the right bottom corner to be displayed, I want this arrow to be displayed vertically centered at the right:</p>
  <p><a href="https://i.stack.imgur.com/nC5NG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nC5NG.png" alt="enter image description here" /></a></p>
  <p>And every solution which i tried until now:</p>
  <p><a href="https://stackoverflow.com/questions/30712235/spinner-dropdown-arrow">Spinner Dropdown Arrow</a></p>
  <p><a href="https://stackoverflow.com/questions/20422802/how-to-set-dropdown-arrow-in-spinner">How to set dropdown arrow in spinner?</a></p>
  <p>simply weren't working. They had stretched icons or the bottom line was missing or something else went totally wrong. I just want another arrow.</p>