Krishnan
Krishnan

Reputation: 15

listview view error

am doing chat app in which i want to display photo,adaptermodel,small icon for online status in listview

this gives error:

final List<AttendeeModel> attendeesList = getAttendeesList(
                    attendees, sender);

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

how simple i implement this..

thanks in advance...

Upvotes: 0

Views: 105

Answers (1)

Miral Dhokiya
Miral Dhokiya

Reputation: 1710

You need to use BaseAdapter for that.. example link link example

please see the example and if you cant understand then tell me

Upvotes: 2

Related Questions