如何像 ios 的 UITableview 一样在 android listview 中绘制部分标题? [英] How to draw a section header in android listview just like the ios's UITableview?

查看:28
本文介绍了如何像 ios 的 UITableview 一样在 android listview 中绘制部分标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想像联系人应用程序一样在 android listview 中绘制一些部分标题.当列表视图被拖动时,部分标题会平坦地移动,谢谢.

I want to draw some section headers in android listview just like the Contacts app did. When the listview was dragged the section headers will move flatly,thanks.

推荐答案

看看这个 Android – ListViews 中的分段标题 示例,很好地描述了如何在 ListViews 中实现分段标题.

Just look at this Android – Sectioned Headers in ListViews example, Its nicely describe how to implement Sectioned Headers in ListViews.

还有

android-amazing-listview

杰夫夏基的分离列表适配器

CommonsWare 的 MergeAdapter

谢谢.

这篇关于如何像 ios 的 UITableview 一样在 android listview 中绘制部分标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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