I have an ArrayAdapter
which is hooked up to my ListView
. I really like the "separators" feature in the Evernote Android application, where they separate items using a datestamp:
I assume what they're doing is having a view immediately above the list which is set to the value of the current separator, as you can see in the screenshots. (As you scroll past a separator, the text at the top is set to the value of the current separator, ie "January 2011") How would I actually insert the separators into my ListView
?
A separator is simply a disabled list item, just have your Adapter
return the separator where it should be. Seems like SectionIndexer
could help.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With