Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android : How to populate a ListView with alphabet indexer and fastscroll as in contacts app.?

I would like to implement a ListView with fastscroll and albhabet indexer as in the contacts application. I'm using a SimpleAdapter to populate the ListView. As seen from the image, by selecting a letter from the alphabet indexer at the right, the listView selection goes to the corresponding ListItem. How to accomplish this? Please help.

enter image description here

like image 731
Kannan Suresh Avatar asked Dec 07 '11 11:12

Kannan Suresh


1 Answers

As I can't see your posted image, but I think

Here is the way to implement Section Indexing in Android as iPhone has, You should also refer Sectionindexer & alphabetindexer for such custom implementation.

  1. https://github.com/emilsjolander/StickyListHeaders
  2. https://github.com/JimiSmith/PinnedHeaderListView
  3. http://hello-android.blogspot.com/2010/11/sideindex-for-android.html

Try this, Hope this what you need..

like image 142
user370305 Avatar answered Nov 14 '22 22:11

user370305