Android equivalent indexed iphone UITableView

I am transferring the iPhone application to the Android platform. In one of the views, there is a very large list of data in the iPhone application, there is a scroll bar on the right side that displays the letters of the alphabet and allows the user to quickly scroll the list in this way. I am having trouble finding such features in Android. Is there an easy way to implement this?

+4
source share
3 answers

I think this is implemented through AlphabetIndexer , although I have not tried it personally.

+3
source

Android's way to do this is to make the list filtered using a keyboard, such as Blackberry. You must do it in such a way as to fit into the experience of the platform.

To implement this, you call the setTextFilterEnabled(boolean textFilterEnabled) method in your list view. See the example below:

 myListView.setTextFilterEnabled(true); 

For a complete example, see Hello ListView .


If you cannot use this, you can use fast scrolling, as shown in the Contacts application. This is not yet a public API, but you can implement it from the contacts source code https://android.googlesource.com/platform/packages/apps/Contacts .

+1
source
0
source

All Articles