listview view error
<p>am doing chat app in which i want to display photo,adaptermodel,small icon for online status in listview </p>

<p>this gives error:</p>

<pre><code>final List&lt;AttendeeModel&gt; attendeesList = getAttendeesList(
                    attendees, sender);

            ListView listView = (ListView) findViewById(R.id.listView);
listView.setAdapter(new ArrayAdapter&lt;AttendeeModel&gt;(this,android.R.layout.simple_list_item_2, attendeesList,R.layout.row, R.id.icon));
</code></pre>

<p>how simple i implement this..</p>

<p>thanks in advance...</p>
