title: Change font size in ListView - Android/Eclipse
body: <p>How can I change the font size in a ListView element? In my main.xml file, I have tried several different values in for android:textSize (pt,px,sp,dp) and nothing seems to change it.</p>
  
  <p>Here is what I have currently for the  in my main.xml:</p>
  
  <pre><code>&lt;ListView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/list"
      android:textColor="#ffffff"
      android:background="#000080" 
      android:layout_width="fill_parent"
      android:layout_height="wrap_content" 
      android:clickable="true" 
      android:dividerHeight="1px"
      android:layout_marginTop="5px" 
      android:textSize="8px"/&gt;
  </code></pre>
  
  <p>Here is my Java:</p>
  
  <pre><code>package com.SorenWinslow.TriumphHistory;
  
  import android.app.ListActivity;
  import android.os.Bundle;
  import android.widget.ArrayAdapter;
  
  public class TriumphHistory extends ListActivity {
      String[] HistoryList;
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
          ArrayAdapter&lt;String&gt; adapter;
          HistoryList = getResources().getStringArray(R.array.history);
          adapter = new ArrayAdapter&lt;String&gt; (this,android.R.layout.simple_list_item_1,HistoryList);
          setListAdapter(adapter);
      }
  
  }
  </code></pre>