title: How can I style android spinner prompt
body: <p>I have developed one example.</p>
  
  <p>Here I have to style a spinner prompt. Please help me. How can I style it?</p>
  
  <p>This is my <strong>string.xml</strong> code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  &lt;string name="hello"&gt;Hello World, CustomizedListView!&lt;/string&gt;
  &lt;string name="app_name"&gt;CustomizedListView&lt;/string&gt;
  &lt;string name="status_prompt"&gt;Choose a Status&lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>This code is used on my main.xml:</p>
  
  <pre><code>&lt;Spinner android:id="@+id/spinner1" 
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_x="106dp"
      android:layout_y="100dp"
      android:prompt="@string/status_prompt" 
      android:background="@drawable/btn_dropdown"/&gt;
  </code></pre>
  
  <p>Here I wish to change the background color and <code>textSize</code>, <code>textStyle</code> on below image. How can I change this.</p>
  
  <p><img src="https://i.stack.imgur.com/iX5Rl.png" alt="spinner prompt"></p>
  
  <p><strong>EDIT:</strong>
  I have added the below code in <strong>styles.xml</strong></p>
  
  <pre><code>&lt;style name="spinner_style"&gt;                        
  &lt;item name="android:layout_width"&gt;fill_parent&lt;/item&gt;
  &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
  &lt;item name="android:textColor"&gt;#040404&lt;/item&gt;
  &lt;item name="android:typeface"&gt;monospace&lt;/item&gt;
  &lt;item name="android:background"&gt;#FFFFFF&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>also added below line on the main.xml for spinner:</p>
  
  <pre><code>  style="@style/spinner_style"   
  </code></pre>
  
  <p>But it also did not work for me. How can I style the spinner prompt message.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>This is my java code for <code>ArrayAdaper</code>:</p>
  
  <pre><code> ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
              android.R.layout.simple_spinner_item, list);
      //set the view for the Drop down list
      adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      //set the ArrayAdapter to the spinner
      spinner.setAdapter(adapter);
      adapter.notifyDataSetChanged();
      //attach the listener to the spinner
      spinner.setOnItemSelectedListener(new MyOnItemSelectedListener());
  
      }
  </code></pre>
  
  <p>How can I set the prompt style here.</p>