Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liaohuqiu/android-GridViewWithHeaderAndFooter
A GridView which can addHeaderView and addFooterView
https://github.com/liaohuqiu/android-GridViewWithHeaderAndFooter
Last synced: 3 months ago
JSON representation
A GridView which can addHeaderView and addFooterView
- Host: GitHub
- URL: https://github.com/liaohuqiu/android-GridViewWithHeaderAndFooter
- Owner: liaohuqiu
- License: apache-2.0
- Created: 2014-10-29T10:16:41.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-08-19T07:07:52.000Z (about 8 years ago)
- Last Synced: 2024-06-28T11:34:36.679Z (5 months ago)
- Language: Java
- Homepage:
- Size: 1.5 MB
- Stars: 1,336
- Watchers: 68
- Forks: 423
- Open Issues: 34
-
Metadata Files:
- Readme: README-cn.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
###### [关注我的GitHub吧,江湖救急,需要你的支持和帮助](http://www.liaohuqiu.net/cn/posts/follow-me-on-github/)
Github: https://github.com/liaohuqiu
微博: http://weibo.com/liaohuqiu
---
### GridView with Header and Footer
![Screen Shot](https://raw.githubusercontent.com/liaohuqiu/android-GridViewWithHeaderAndFooter/master/screen-shot.png)
只有一个文件,你可以将源代码放入你的项目中。另外项目发布到了Maven中央库,你可以通过`pom`或者`gradle`引入。
#### Maven
```xml
in.srain.cube
grid-view-with-header-footer
jar
1.0.12```
#### Gradle
``` groovy
compile 'in.srain.cube:grid-view-with-header-footer:1.0.12'
```### 使用示例
```java
GridViewWithHeaderAndFooter gridView = (GridViewWithHeaderAndFooter) v.findViewById(R.id.ly_image_list_grid);LayoutInflater layoutInflater = LayoutInflater.from(this);
View headerView = layoutInflater.inflate(R.layout.test_header_view, null);
View footerView = layoutInflater.inflate(R.layout.test_footer_view, null);
gridView.addHeaderView(headerView);
gridView.addFooterView(footerView);
```### Thanks
[HeaderGridView](https://android.googlesource.com/platform/packages/apps/Gallery2/+/idea133/src/com/android/photos/views/HeaderGridView.java)
### License
Apache 2
### 联系方式 / 帮助支持
Please fell free to contact me if there is any problem when using the library.
* [email protected]
* twitter: https://twitter.com/liaohuqiu
* 微博: http://weibo.com/liaohuqiu
* QQ 群: 271918140