title: How to set the items' text color in Spinner Android
body: <p><br>
  I'm having problems with setting text color for the Spinner. I've seen few examples but most have ArrayAdapter and String array from <code>strings.xml</code> in <code>res folder</code> as my Spinner's items are retrieved from SQLite Database so I think it may not help.<br></p>
  
  <p>Here are my Spinner's codes PersonalInformation.java</p>
  
  <pre><code>public class PersonalInformation extends Activity
  {
      EditText txtLikes, txtDislikes, txtType, txtDate;
      Button btnView, btnBack;
      Spinner nameSpinner;    
  
      final Context context = this;
  
      private int namesSpinnerId;        
  
      LikesDBAdapter likeDB = new LikesDBAdapter(this);
      DislikesDBAdapter dlikeDB = new DislikesDBAdapter(this);
  
  
      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
          setContentView(R.layout.info);
  
          BuddyDBAdapter buddyDB = new BuddyDBAdapter(this);
          buddyDB.open();
  
          Cursor friendsCursor = buddyDB.getAllNames();
          startManagingCursor(friendsCursor); 
  
          String[] from = new String[]{BuddyDBAdapter.KEY_NAME};
          int[] to = new int[]{R.id.name};
  
          SimpleCursorAdapter friendsCursorAdapter = new SimpleCursorAdapter(this, android.R.layout.simple_spinner_item, friendsCursor, from, to);
          friendsCursorAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
          nameSpinner = (Spinner)findViewById(R.id.nameSpinner);
          nameSpinner.setAdapter(friendsCursorAdapter);
          //buddyDB.close();
  
  
          nameSpinner.setOnItemSelectedListener(new OnItemSelectedListener()
              {
                   @Override
                   public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int pos, long id)
                   {
                       Cursor c = (Cursor)parent.getItemAtPosition(pos);
                       namesSpinnerId = c.getInt(c.getColumnIndexOrThrow(BuddyDBAdapter.KEY_ROWID));
                   }
  
                  @Override
                  public void onNothingSelected(AdapterView&lt;?&gt; parent)
                  {
                      // TODO Auto-generated method stub
  
                  }
              });
          buddyDB.close();
  </code></pre>
  
  <p>And, these are Spinner's layout codes in info.xml</p>
  
  <pre><code>&lt;Spinner
          style="@style/SpinnerStyle"
          android:id="@+id/nameSpinner"        
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:prompt="@string/friends_prompt"
          android:textColor="@color/green" /&gt;
  </code></pre>
  
  <p>Please help me with how to set the items text color in Spinner. <br>I'll appreciate any help provided. Thanks.! =)</p>