title: Populate listview from arraylist of objects
body: <p>I have a listactivity which will display a list of persons name and address with data from arraylist of objects. here's the method to fill the listview so far..</p>
  
  <pre><code>private void fillData(ArrayList&lt;Person&gt; messages) {
      //populating list should go here
  }
  </code></pre>
  
  <p>The person class is stores name and address of a person.</p>
  
  <pre><code>public class Person {
     String name;
     String address;
  }
  </code></pre>
  
  <p>While my listitem for my listview consist of two textview, like this : </p>
  
  <pre><code>&lt;TwoLineListItem xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:minHeight="?android:attr/listPreferredItemHeight"
  android:mode="twoLine"
  android:clickable="false"
  android:paddingBottom="9dp"
  android:paddingTop="5dp" &gt;
  
  &lt;TextView
      android:id="@+id/display_name"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_marginLeft="10dp"
      android:textAppearance="?android:attr/textAppearanceLarge" /&gt;
  
  &lt;TextView
      android:id="@+id/display_number"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignLeft="@+id/display_name"
      android:layout_below="@+id/display_name"
      android:textAppearance="?android:attr/textAppearanceSmall" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>I want each item in my listview to displaying both the name and address of each person. Can somebody please help ?</p>
  
  <p>Thanks in advance, and sorry for my bad English...</p>