Khushbu Shah
Khushbu Shah

Reputation: 1683

CursorAdapter with Alphabet-indexed Section Headers in android

I have to make own contact list, where i want to put section headers. In contact list i have to merge contacts (native contacts and some contacts comes from our server) Here is an example of section header in list view. In that example all data will be read from database before showing the list. I don't want to read all data but read only data which will display in screen (8 to 9 rows), as list scroll read next data. Can we give the data to one by one row to the SimpleCursorAdapter ?

Upvotes: 0

Views: 1015

Answers (1)

the100rabh
the100rabh

Reputation: 4147

write your own adapter which reads directly from the database in case its not in cache. This should be a good solution.

Upvotes: 1

Related Questions