https://github.com/crazycodeboy/grouplistview
仿支付宝账单列表效果
https://github.com/crazycodeboy/grouplistview
Last synced: 4 months ago
JSON representation
仿支付宝账单列表效果
- Host: GitHub
- URL: https://github.com/crazycodeboy/grouplistview
- Owner: crazycodeboy
- Created: 2015-03-06T06:46:18.000Z (almost 11 years ago)
- Default Branch: dev
- Last Pushed: 2015-05-20T09:22:20.000Z (over 10 years ago)
- Last Synced: 2025-06-11T22:52:35.830Z (7 months ago)
- Language: Java
- Size: 2.36 MB
- Stars: 63
- Watchers: 7
- Forks: 31
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GroupListView简介 #
- GroupListView支持上拉加载下拉刷新,并且可以根据需要选择是否启用下拉刷新、上拉加载
- GroupListView支持列表项悬停效果
## 运行效果图 ##

## PS. ##
>为了实现支付宝账单列表的悬停、上拉加载、下拉刷新的效果,我从Git上Fetch了pulltorefresh和PinnedSectionList两个开源项目,并对pulltorefresh进行修改实现上拉加载的效果,将修改后的pulltorefresh更名成了ListViewPlus,最后将PinnedSectionList的library依赖于ListViewPlus,就实现了带有悬停效果并且支持上拉加载、下拉刷新的GroupListView,现在将其开源出来供大家使用。
## 使用方法 ##
1. GroupListView是基于ListView开发的一个控件,所以大家可以使用ListView的方式来使用它。
2. ListViewPlus部分:关于ListViewPlus方面的功能大家可以参考[https://github.com/crazycodeboy/ListViewPlus](https://github.com/crazycodeboy/ListViewPlus "ListViewPlus")
3. PinnedSectionList部分:
PinnedSectionList的使用需要一个实现如下方法的适配器:
```java
@Override
public int getItemViewType(int position) {
return items.get(position).getType();
}
@Override
public int getViewTypeCount() {
return 2;
}
@Override
public boolean isItemViewTypePinned(int viewType) {
return viewType==Item.SECTION;
}
```
4 .其它使用细节可以参照实例。