Contact View Styling on Android

拈花ヽ惹草 提交于 2019-12-23 02:52:07

问题


Ok, currently I have a view in my android app that displays a list of contacts for our agents that is retrieved via a web service.

I have built a simple array adapter that binds my contact objects to the listactivity and just uses a contactrow.xml template to display anywhere from 1 to 1000 contacts.

This works fine but is lacking at best. I want to replicate the way that contacts are scrolled in the android contact app. Is there is way to have the ABC's indexed to the right and help the end user navigate this contact list the same way they would expect?

Does the CursorAdapter help accomplish this? What is the best approach?


回答1:


What you're looking for is the AlphabetIndexer class. I've not used it personally, but here is a tutorial that may help you:

http://www.anddev.org/tutusing_alphabetindexer_for_fastscrolling_listview-t10282.html



来源:https://stackoverflow.com/questions/4146906/contact-view-styling-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!