I have a listview with custom adapter which displays names from the contacts . currently its displaying them as
Rohit
Rahul
….
I want it to be like
- Rohit
- Rahul
….
i.e, number should be appended automatically . I tried doing that using a count variable in both bindview() & newview() method but it gets messed up when i scroll down and come back
the way I am setting text is
name = cursor.getString(cursor.getColumnIndex(ContactsContract.Data.DISPLAY_NAME));
contactName.setText(count + ". " + name);
try