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

查看:18
本文介绍了如何像 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 中的Sectioned Headers 示例,它很好地描述了如何在ListViews 中实现Sectioned Headers.

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

还有

android-amazing-listview

Jeff Sharkey 的分离列表适配器

CommonsWare 的 MergeAdapter

谢谢.

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

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