对可扩展列表视图进行排序

发布于 2024-11-16 10:03:16 字数 70 浏览 8 评论 0原文

我想动态对可消耗列表视图进行排序。有人可以告诉我如何实现这个目标吗?

我尝试对组名称进行排序,但子元素未排序。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ㄖ落Θ余辉 2024-11-23 10:03:16

我认为我们需要有关代码的更多详细信息,没有代码很难说,但无论如何这里是一些代码的链接也许会对您有所帮助:
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

柠檬 2024-11-23 10:03:16

基本上我所做的就是使用自定义比较器方法对其进行排序。

Basically what I did was sort it using custom comparator methods.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文