Im working on an application where I load items from a webservice and display them in a list using ListView. I was wondering if I could have certain “titles” between some of them, and when you scroll through them, they stick to the top of the list, until another “title” comes and takes the spot. An example of this is the Android contacts application:
http://img196.imageshack.us/img196/1440/contactss.png
NOTE: Since I can’t post images yet, I posted the direct link
The letters G, H and J.
How can I achieve this?
Searching on Google I found a nice code of ListView with sticking categories, also includes a working sample project:
http://code.google.com/p/android-amazing-listview/