Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/njleonzhang/swipetoloadlayoutwrapper
https://github.com/njleonzhang/swipetoloadlayoutwrapper
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/njleonzhang/swipetoloadlayoutwrapper
- Owner: njleonzhang
- Created: 2017-06-29T10:06:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-30T03:33:09.000Z (over 7 years ago)
- Last Synced: 2024-11-06T13:47:53.665Z (2 months ago)
- Language: Java
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SwipeToLoadLayoutWrapper
[SwipeToLoadLayout](https://github.com/Aspsine/SwipeToLoadLayout)的封装,便于使用。```
private SwipeToLoadLayoutWrapper mWrapper;// 同时设置head和footer:
// TYPE_GOOGLE
// TYPE_GOOGLE_CIRCLE
swipeWrapper.setHeadAndFoot(SwipeToLoadLayoutWrapper.TYPE_GOOGLE);
// 分别设置head和footer:
mWrapper.setHeaderView(SwipeToLoadLayoutWrapper.TYPE_GOOGLE).setFooterView(SwipeToLoadLayoutWrapper.TYPE_GOOGLE_CIRCLE);// 设置自定义heade或者footer:
View footerView = new LoadMoreFooterView(mActivity);
footerView.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));
swipeWrapper.setFooterView(footerView);
```关于如何自定义head和footer,参见[SwipeToLoadLayout](https://github.com/Aspsine/SwipeToLoadLayout)文档。