Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想按月显示数据库中的数据。表示用户在特定月份显示的特定月份完成的活动数量。喜欢,
2013 年 4 月 1 日
2013 年 5 月 2 日
数据来自数据库的列表视图。我该怎么做,如果有人知道请帮助我。
您可以先使用日期对日期进行排序Comparator,Collections.sort然后按每个月填充列表视图。您还可以检查有数据的月数并仅填充这些列表视图。但解决此问题的最佳方法是使用可扩展的 Listview。检查此链接
Comparator
Collections.sort
可展开的列表视图
按日期排序
我希望它至少会给你一个开始工作的想法。