title: changing spinner text color based on background color
body: <p>I have a custom spinner layout with an image and a text view but I noticed that depending on the manufacturers skin you cant see the text because of the color ie. white on white, black on black. </p>
  
  <p>I also noticed that none of my other non-custom spinners do this and seems to change automatically so my question is how can I get the text color to change so that it can be read?</p>
  
  <p>this is a non-custom spinner</p>
  
  <pre><code>ArrayAdapter&lt;CharSequence&gt; cAdapter;
      cAdapter = ArrayAdapter.createFromResource(this, R.array.colors,android.R.layout.simple_spinner_item);
      int cSpinnerDD = android.R.layout.simple_spinner_dropdown_item;
      cAdapter.setDropDownViewResource(cSpinnerDD);
      color.setAdapter(cAdapter);
  </code></pre>
  
  <p>the custom spinner I just override the view to put the images in with text</p>
  
  <p>here is the layout for it</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:orientation="horizontal"&gt;
  &lt;ImageView android:id="@+id/icon"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"/&gt;
  &lt;TextView android:id="@+id/icon_txt"
      android:paddingLeft="25dp"
      android:textSize="18sp"
      android:layout_marginTop="5dp"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"/&gt;  
  &lt;/LinearLayout&gt;
  </code></pre>