Home » Android » list – ListView with Alphabet on Android

list – ListView with Alphabet on Android

Posted by: admin May 14, 2020 Leave a comment

Questions:

I want to do a listview on android and it contains an alphabet near of the list (like iphone application).

I couldnt find any way to implement an list and having alphabets, when ı click on c letter list scrolling and start with the c Letter.

Thanks

How to&Answers:

May be FastScroll fits to you?
http://developer.android.com/reference/android/widget/AbsListView.html#setFastScrollEnabled%28boolean%29

Answer:

You can get it by using Database,manage a table to store parsed data and then display data in listview by fetching it database table,
please refer the link for more about database in android
http://developer.android.com/guide/topics/providers/content-providers.html

Answer:

I tried to do the same and i ended up putting a list view and a textview into a frame layout and then using touch positions in conjunction with list.setslection() to focus…worked for me ! more here: Replication of Apple's Search in Android

Answer:

I agree with Sergey Glotov, regarding Fastscroll, please take a look at sectionIndexer interface.
Maybe these links(eg1 and eg2) will help you.