I extended SimpleCursorAdapter according to my needs. I want to show two textviews in a row.
One of these textviews is filled by the cursor but for the other one I want to use an ArrayList. Let me give an example to clarify:

For the first field I use the data from cursor
String[] columns = new String[] { ContactsContract.PhoneLookup.DISPLAY_NAME };
int[] to = new int[] { R.id.toptext };
I want to use ArrayList for the second field so that they form the following listview

I don’t know how I can set the second field. Any help would be appreciated.
I haven’t tested it but you could use the
_idcolumn of your query to map your values to the list and later bind the data.Then pass this
HashMapto your custom adapter constructor:and bind the values in the
bindView()method:Note: I don’t know how efficient this will be if you have many rows in the cursor.