title: Assign object property to listview
body: <p>I have an <code>ArrayList</code> of an object which has properties <code>Object.name</code> and <code>Object.url</code>.</p>
  
  <p>I want to loop through the ArrayList and apply the Object's "name" to an android ListView. I also want to keep the Object's other properties in tact, so that i can call the "url" property in the onClick method.</p>
  
  <p>What i have now is this:</p>
  
  <pre><code>main_list.setAdapter(new ArrayAdapter&lt;RomDataSet&gt;(this, android.R.layout.simple_list_item_1, android.R.id.text1, mRoms));
  </code></pre>
  
  <p>But clearly that is not what I need...</p>
  
  <p>Any help would be appreciated :)</p>