title: how to reduce spinner font size in code?
body: <p>Actually I need to reduce the font size of spinner via code, below is my code:  </p>
  
  <pre><code>  Spinner spiner2 = (Spinner) findViewById(R.id.Spinner2); 
    List&lt;String&gt; list = new ArrayList&lt;String&gt;();
    list.add("list 1"); 
    list.add("list 2");
    list.add("list 3"); 
    ArrayAdapter&lt;String&gt; dataAdapter = new ArrayAdapter&lt;String&gt;(this,android.R.layout.trytry,list); 
    dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); 
    spiner2.setAdapter(dataAdapter);
  </code></pre>
  
  <p>I created an xml file named as trytry.xml to mention in ArrayAdapter but in SetContentView I mentioned setContentView(R.layout.main); I'm confused how to do it </p>
  
  <p>my trytry xml contains:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
   &lt;Spinner xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="fill_parent"
     android:layout_height="fill_parent" &gt;
  &lt;TextView 
      xmlns:android="http://schemas.android.com/apk/res/android" 
      android:text="@+id/TextView01"    
      android:layout_width="wrap_content"   
      android:layout_height="wrap_content" 
      android:textSize="18dp"&gt; 
  &lt;/TextView&gt; 
   &lt;/Spinner&gt;  
  </code></pre>