title: How can I change the color of the textView android.R.layout.simple_spinner_dropdown_item?
body: <p>I'm creating a SpinnerAdapter using the built in resource ID android.R.layout.simple_spinner_dropdown_item</p>
  
  <pre><code>SpinnerAdapter mSpinnerAdapter = ArrayAdapter.createFromResource(this, R.array.action_list, android.R.layout.simple_spinner_dropdown_item);
  </code></pre>
  
  <p>but the textView which that resource ID creates has textColor Black and I need a different color.  What's the best way of changing the color but keeping everything else the same?</p>
  
  <p>When I try and create my own textView layout resource in an xml file, e.g. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:textColor="@color/White"
      /&gt;
  </code></pre>
  
  <p>then it doesn't behave in the same way as android.R.layout.simple_spinner_dropdown_item because e.g. the padding is different.  So <ol><li>
  Is there a way of creating my own layout resource in an xml file which inherits everything from android.R.layout.simple_spinner_dropdown_item and allows me to override the textColor?</li><li>Or is the complete definition of android.R.layout.simple_spinner_dropdown_item available somewhere?</li><li>Or perhaps there's an even easier way somehow?</li></ol></p>
  
  <p>This question relates to another question that I've asked today (<a href="https://stackoverflow.com/questions/15948026/cant-change-the-text-color-with-android-action-bar-drop-down-navigation/15955298#15955298">Can&#39;t change the text color with Android Action Bar drop-down navigation</a>).  I've realised that one answer to that question (and hence this question) is to create my own <code>ArrayAdapter</code> class which inherits from <code>ArrayAdapter&lt;T&gt;</code> so that I can always set the color in code whenever the ArrayAdapter gets used (see my answer to that question).  But that seems like a very cumbersome solution :-|.</p>
  
  <p>Changing a text color shouldn't be a hard task! </p>