title: How to change spinner text size and text color?
body: <p>In my Android application, I am using spinner, and I have loaded data from the SQLite database into the spinner, and it's working properly. Here is the code for that.</p>
  
  <pre><code>Spinner spinner = (Spinner) this.findViewById(R.id.spinner1);
  List&lt;String&gt; list = new ArrayList&lt;String&gt;();
  ArrayAdapter&lt;String&gt; dataAdapter = new ArrayAdapter&lt;String&gt;  (this,android.R.layout.simple_spinner_item, list);
  cursor.moveToFirst();
  
  list.add("All Lists");
  
  if (cursor.getCount() &gt; 0) {
      for (int i = 0; i &lt; cursor.getCount(); i++) {
          keyList[i] = cursor.getString(cursor.getColumnIndex(AndroidOpenDbHelper.KEYWORD));
          list.add(keyList[i]);
          cursor.moveToNext();
      }
  }
  Database.close();
  cursor.close();
  dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
  spinner.setAdapter(dataAdapter);
  </code></pre>
  
  <p>Now I want to change the text color and text size of spinner data. I have used following XML lines to my spinner tag on my XML file, but it is not working.</p>
  
  <pre><code>android:textColor="@android:color/white"
  android:textSize="11dp"
  </code></pre>
  
  <p>How can I change the text color and text size of my spinner?</p>