title: Android changing typeface of custom listview having subitems
body: <p>Here I have a basic list view. I want to change the typeface of text in the listView. And of course I want to have subItem for that. What should i do?</p>
  
  <p><em>in MainActivity:</em></p>
  
  <p>IN ON CREATE METHOD: </p>
  
  <pre class="lang-java prettyprint-override"><code>list.setOnItemClickListener(new OnItemClickListener(){
      @Override
      public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
              long arg3) {
  
          Intent info=new Intent(Main.this, Info.class);
          info.putExtra("id", id[arg2]+"");
          startActivity(info);
      }
  });
  </code></pre>
  
  <p>ON RESUME:</p>
  
  <pre class="lang-java prettyprint-override"><code>protected void onResume() {
      super.onResume();
      refresh();
  }
  
  public void refresh(){
      final dbHandler db=new dbHandler(this);
  
      final ListView list=(ListView) findViewById(R.id.searchh_list);
  
      db.open();
      int count=db.Count();
  
      name=new String[count];
      id=new int[count];
  
      for(int i=0; i&lt;count; i++){  
       name[i]=db.Display(i,1)+"      =      "+db.Display(i, 2);
       id[i]=Integer.parseInt(db.Display(i, 0));
      }
      db.close();
      list.setAdapter(
          newArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1,name));
  } 
  </code></pre>
  
  <p>I want to show <code>db.Display(i, 2);</code> on subItems.</p>