对可扩展列表视图进行排序
我想动态对可消耗列表视图进行排序。有人可以告诉我如何实现这个目标吗?
我尝试对组名称进行排序,但子元素未排序。
I want to sort an expendable listview dynamically. Could someone tell me how to accomplish this?
I've tried sorting the group name but then the child elements don't get sorted.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为我们需要有关代码的更多详细信息,没有代码很难说,但无论如何这里是一些代码的链接也许会对您有所帮助:
https://github.com/commonsguy/cwac-touchlist
I think we would need more details about the code, without the code it's hard to tell but anyway here is a link to some code maybe it will help you:
https://github.com/commonsguy/cwac-touchlist
基本上我所做的就是使用自定义比较器方法对其进行排序。
Basically what I did was sort it using custom comparator methods.