I know how to display it in the screen, but when I use the Contacts app in my phone, I found its alphabet section header can be fixed in the top when I scroll the list.
How to make that happen?
See the AmazingListView here, which is ListView with section headers.
It works similarly to the default Contacts application.
You need to implements
public int getSectionForPosition(int position) {
return <return position where header start>
}
If you are using AlphaIndexer you can simply use
public int getSectionForPosition(int position) {
return alphaIndexer.getSectionForPosition(position);
}
Hope that helps.