title: Applying a custom style to a spinner
body: <p>I am trying to apply a custom style over a spinner:</p>
  
  <pre><code>Spinner classClassification = (Spinner) findViewById(R.id.classClassification);
  Resources res = getResources();
  ArrayAdapter&lt;String&gt; arrayAdapter = new ArrayAdapter&lt;String&gt;(this, R.layout.spinner_custom, res.getStringArray(classArrayResource));
  arrayAdapter.setDropDownViewResource(R.layout.spinner_dropdown_layout);
  classClassification.setAdapter(arrayAdapter);
  </code></pre>
  
  <p><code>in spinner_custom:</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/text1"
      style="?android:attr/spinnerItemStyle"
      android:singleLine="true"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:ellipsize="marquee"
      android:textAlignment="inherit"/&gt;
  </code></pre>
  
  <p><code>in spinner_dropdown_layout:</code></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/text1"
      style="@style/spinnerDropDownItemStyle"
      android:singleLine="true"
      android:layout_width="match_parent"
      android:layout_height="@dimen/dimen_5"
      android:ellipsize="marquee" /&gt;
  </code></pre>
  
  <p>And in <code>styles</code>:</p>
  
  <pre><code>&lt;!--Spinner Style--&gt;
  &lt;style name="spinnerItemStyle" parent="android:Widget.TextView.SpinnerItem"&gt;
      &lt;item name="android:layout_height"&gt;40sp&lt;/item&gt;
      &lt;item name="android:textSize"&gt;55sp&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="spinnerDropDownItemStyle" parent="android:TextAppearance.Widget.TextView.SpinnerItem"&gt;
      &lt;item name="android:layout_height"&gt;40sp&lt;/item&gt;
      &lt;item name="android:textSize"&gt;55sp&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>But no change in above takes effect in the outcome, what am I doing wrong?</p>