samedi 7 février 2015

Android Insert new row in between cursor adapter

I have 2 cursor, cursor 1 and cursor 2. A Cursor Adapter has been used to display the result of cursor 1. However, I want to insert cursor 2's item for every 5 cursor 2 items. How can i achieve that?


I have look at MatrixCursor and MergeCursor, they would merge and add the rows, but I want to insert in between. Any ideas how can we do this?


Aucun commentaire:

Enregistrer un commentaire