Android : How To Populate A Listview With Alphabet Indexer And Fastscroll As In Contacts App.?
Solution 1:
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.
- https://github.com/emilsjolander/StickyListHeaders
- https://github.com/JimiSmith/PinnedHeaderListView
- http://hello-android.blogspot.com/2010/11/sideindex-for-android.html
Try this, Hope this what you need..
Solution 2:
I know that this is late, Still here is a my github repo with an android project with list section header and alphabet indexer. I also implemented filter in it. Hope it helps someone.
Solution 3:
I will let you know in brief.
Create a class extends RelativeLayout implements OnTouchListener
Define a strings of alphabets
Find the screen height of list view
Create dyanamic textviews count same as number of alphabets, height of textView ==> screenWidth / alphabets.
Override onTouch method .
Find the textview which is currently selected//Offset.
Create a handler for sending the event to mainList
Call Listview setSelectionFromTop method pass the position.
Its done...
Post a Comment for "Android : How To Populate A Listview With Alphabet Indexer And Fastscroll As In Contacts App.?"