I have a customized Cursor
based adapter for my ListView
. Each Cursor
has a few columns of data, sorted by the priority column.
I know you can create a disabled list item to act as a sort of header, like in the Market app (the little green labels).
What I would like to do is display a header for each group of items with a different priority. They are already sorted by priority.
Example data:
title, priority
note1, high
note3, high
note2, low
note4, low
Example of what I want in ListView
:
===High Priority====
-note1
-note3
===Low Priority=====
-note2
-note4
Any ideas on how I could do this?