title: How to customize a Spinner in Android
body: <p>I want to add a custom height to the dropdown of a <code>Spinner</code>, say 30dp, and I want to hide the dividers of the dropdown list of <code>Spinner</code>.</p>
  
  <p>So far I tried to implement following style to the <code>Spinner</code>:</p>
  
  <pre><code>&lt;style name="spinner_style"&gt;
          &lt;item name="android:paddingLeft"&gt;0dp&lt;/item&gt;
          &lt;item name="android:dropDownWidth"&gt;533dp&lt;/item&gt;
          &lt;item name="android:showDividers"&gt;none&lt;/item&gt;
          &lt;item name="android:dividerHeight"&gt;0dp&lt;/item&gt;
          &lt;item name="android:popupBackground"&gt;@drawable/new_bg&lt;/item&gt;
          &lt;item name="android:dropDownHeight"&gt;70dp&lt;/item&gt;
          &lt;item name="android:scrollbarAlwaysDrawVerticalTrack"&gt;true&lt;/item&gt;
          &lt;item name="android:dropDownSelector"&gt;@android:color/white&lt;/item&gt;
   &lt;/style&gt;
  </code></pre>
  
  <p>and the code of my spinner is :</p>
  
  <pre><code>&lt;Spinner
              android:id="@+id/pioedittxt5"
              android:layout_width="543dp"
              android:layout_height="63dp"
              android:layout_toRightOf="@+id/piotxt5"
              android:background="@drawable/spinner"
              style="@style/spinner_style"
              android:dropDownVerticalOffset="-53dp"
              android:spinnerMode="dropdown"
              android:drawSelectorOnTop="true"
              android:entries="@array/travelreasons"
              android:prompt="@string/prompt" /&gt;
  </code></pre>
  
  <p>But nothing seems to be working.</p>