title: how to change text size of listview
body: <p>I am using List Activity to retrieve data from SQLITE. But I can not set the font size of list view. Please help me.</p>
  
  <pre><code>public class CartList extends ListActivity {
      private ArrayList&lt;String&gt; results = new ArrayList&lt;String&gt;();
      public void onCreate(Bundle bundle) {
          super.onCreate(bundle);
          setContentView(com.example.easyshopping.R.layout.cart);
          openAndQueryDatabase();
          displayResultList();
      }
      private void displayResultList() {
          setListAdapter(new ArrayAdapter&lt;String&gt;(this,
                  android.R.layout.simple_list_item_1, results));
          getListView().setTextFilterEnabled(true);   }
          private void openAndQueryDatabase() {
          try {
              SQLiteDatabase database = openOrCreateDatabase("ORCL", MODE_PRIVATE, null);
              Cursor c = database.rawQuery("SELECT title,qty,price FROM CART;", null);
                           if (c != null ) {
                  int totalPrice=0;
                  if  (c.moveToFirst()) {
                      do {
                          String title = c.getString(c.getColumnIndex("title"));
                          int qty = c.getInt(c.getColumnIndex("qty"));
                          int price = c.getInt(c.getColumnIndex("price"));
                          int pricePerTitle=price*qty;
                          results.add("Title: " + title + ",  Quantity: " + qty+",  Price: $"+pricePerTitle);
                          totalPrice=totalPrice+pricePerTitle;
                      }while (c.moveToNext());
                  }
                 TextView tTotalPrice=(TextView)findViewById(com.example.easyshopping.R.id.txttotalprice);
                  String total= Integer.toString(totalPrice);
                 tTotalPrice.setText(total);
              }
          } catch (SQLiteException se ) {
              Log.e(getClass().getSimpleName(), "Could not create or Open the database");
          }
  
      }
  </code></pre>
  
  <p>cart.xml</p>
  
  <pre><code>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:orientation="vertical"
                android:layout_width="match_parent"
                android:layout_height="match_parent"&gt;
      &lt;RelativeLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:gravity="center" android:layout_gravity="center"&gt;
          &lt;ImageView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:background="@drawable/shoppinglist"
  
                  &gt;&lt;/ImageView&gt;
  
              &lt;/RelativeLayout&gt;
  
      &lt;ListView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:id="@android:id/list"
              &gt;&lt;/ListView&gt;
  
      &lt;RelativeLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:gravity="center" android:layout_gravity="center" &gt;
         &lt;TextView
                 android:layout_width="wrap_content"
                 android:layout_height="wrap_content"
                 android:text="Total Price is:$ "
                 android:textColor="#f3f607"
                 android:textSize="10dp"
                 android:id="@+id/txttotal"
                 &gt;&lt;/TextView&gt;
          &lt;TextView
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:textColor="#f3f607"
                  android:textSize="10dp"
                  android:layout_toRightOf="@+id/txttotal"
                 android:id="@+id/txttotalprice"&gt;&lt;/TextView&gt;
          &lt;Button
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_horizontal"
                  android:text="send your Shopping List."
                  android:textSize="12dp"
                  android:id="@+id/cartButton"
                  android:layout_below="@+id/txttotal"&gt;&lt;/Button&gt;
  
              &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>the font size is very big in list view.
  <img src="https://i.stack.imgur.com/lXDcp.jpg" alt="enter image description here"></p>