title: Set TypeFace for ListView
body: <p>I have 2 XML file for list View. One for views and other for use first.
  note_list.XML is :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:padding="10dip" &gt;
  
      &lt;Button
          android:id="@+id/allNotes_btn_refresh_list"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/all_note_refresh_list" /&gt;
  
      &lt;ListView
          android:id="@android:id/list"
          android:layout_width="fill_parent"
          android:layout_height="match_parent" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and list_otem.XML is :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
      &lt;TextView
          android:id="@+id/list_lbl_id"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:visibility="gone" /&gt;
  
      &lt;TextView
          android:id="@+id/list_lbl_subject"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
      &lt;TextView
          android:id="@+id/list_lbl_date"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>in below code, i set adapter for list:</p>
  
  <pre><code>ArrayList&lt;HashMap&lt;String, String&gt;&gt; noteList;
  ListView lv;
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.note_list);
      noteList = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
      lv = getListView();
  
      lv.setOnItemClickListener(new OnItemClickListener() {
          public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                  int position, long id) {
  
              String note_id = ((TextView) view
                      .findViewById(R.id.list_lbl_id)).getText().toString();
              Intent i = new Intent(getApplicationContext(), NoteDetail.class);
              i.putExtra("note_id", note_id);
              startActivityForResult(i, 100);
          }
      });
  }
  
  public class LoadAllNotes extends AsyncTask&lt;String, String, String&gt; {
          @Override
          protected void onPreExecute() {
              super.onPreExecute();
              pDialog = new ProgressDialog(AllNotes.this);
              pDialog.setMessage("???? ??? ????...");
              pDialog.setIndeterminate(false);
              pDialog.setCancelable(true);
              pDialog.show();
  
              noteList.clear();
          }
  
          protected String doInBackground(String... args) {
  
              UserFunctions userFunctions = new UserFunctions();
  
              jSon = userFunctions.getAllNotes(userId);
  
              Log.i("AllNotes &gt;&gt; jSon &gt;&gt;", jSon.toString());
  
              return null;
          }
  
          protected void onPostExecute(String file_url) {
              pDialog.dismiss();
              try {
                  if (jSon.has(KEY_SUCCESS)) {
                      String success = jSon.getString(KEY_SUCCESS);
                      if (success.equals("1")) {
  
                          notes = jSon.getJSONObject("notes");
                          for (int i = 0; i &lt; notes.length(); i++) {
                              JSONObject c = notes.getJSONObject(Integer
                                      .toString(i));
  
                              Log.i("JSONObject c &gt;&gt;", c.toString());
  
                              String id = c.getString(KEY_NOTE_ID);
                              String subject = c.getString(KEY_NOTE_SUBJECT);
                              String date = c.getString(KEY_NOTE_DATE);
  
                              HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
                              map.put(KEY_NOTE_ID, id);
                              map.put(KEY_NOTE_SUBJECT, subject);
                              map.put(KEY_NOTE_DATE, date);
  
                              noteList.add(map);
                          }
  
                      }
                  }
              } catch (JSONException e) {
                  e.printStackTrace();
              }
  
              runOnUiThread(new Runnable() {
  
                  public void run() {
                      ListAdapter adapter = new SimpleAdapter(AllNotes.this,
                              noteList, R.layout.list_item, new String[] {
                                      KEY_NOTE_ID, KEY_NOTE_SUBJECT,
                                      KEY_NOTE_DATE }, new int[] {
                                      R.id.list_lbl_id, R.id.list_lbl_subject,
                                      R.id.list_lbl_date });
                      setListAdapter(adapter);
                  }
              });
          }
      }
  </code></pre>
  
  <p>How can i set type face for TextViews in item_list.XML? I set note_list for content view in java code. so can't access to views of list_item.xml. thanks for helping me.</p>