Android的:如何填充字母索引和fastscroll一个ListView在联系人应用程序?应用程序、字母、索引、联系人

2023-09-05 08:50:37 作者:撩妹高手

我想实现与fastscroll和albhabet索引一个ListView在联系人应用程序。我使用的是SimpleAdapter来填充ListView。由于从图像中看出,在恰当的选择,从字母索引一个字母,列表视图选择进入相应的列表项。如何做到这一点?请大家帮帮忙。

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.

推荐答案

正如我不能看到你贴的形象,但我觉得

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

下面是一段实施部分索引在Android作为iPhone有, 你也应该参考Sectionindexer和放大器; alphabetindexer这样的自定义实现。

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/十一分之二千零十/ sideindex换android.html 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..

 
精彩推荐