与分离器Android的列表视图 [英] Android List view with separators

查看:141
本文介绍了与分离器Android的列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个像默认的联系人应用程序分隔符列表视图。我的应用程序需要该列表进行排序和其它产品中分离隔开(如在联系人应用程序中的字母排序)。能够使用分离器的标题将是一个额外的好处,以滚动。任何指针将是有益的。谢谢!

I want to create a listview with separators like in the default contacts application. My application needs that the list be sorted and the items be separated by separators(like the alphabetical sorting in contacts application). Being able to scroll using the separator titles would be an added advantage. Any pointers would be helpful. Thanks!!

推荐答案

看看这个开源项目,它给你的头,他们是粘过:

Take a look at this open source project, it gives you headers and they are sticky too:

https://github.com/emilsjolander/StickyListHeaders

这篇关于与分离器Android的列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆