android - How to create ListView disabled item labels for sections of list items? -
I have a customized cursor
based adapter for my ListView
. Each cursor
has some columns of data, sorted by priority column.
I know that you can create a disabled list item, such as working as a header, such as an app in the market (small green label).
What I would like to do, will display the header for each group of each priority, they are already sorted by priority.
Example data:
heading, priority note 1, high note 3, high note 2, less note 4, lower
Example of what I want in the ListView
=== High Priority ==== -note1 -note3 === Low Priority ==== = - Note2 -note4
How can I do this but any thoughts?
Since you are using the cursor, you can try me.
How to see its source for an example.
Comments
Post a Comment