README-cn.md
May 16, 2015 · View on GitHub
关注我的GitHub吧,江湖救急,需要你的支持和帮助
Github: https://github.com/liaohuqiu
微博: http://weibo.com/liaohuqiu
GridView with Header and Footer

只有一个文件,你可以将源代码放入你的项目中。另外项目发布到了Maven中央库,你可以通过pom或者gradle引入。
Maven
<dependency>
<groupId>in.srain.cube</groupId>
<artifactId>grid-view-with-header-footer</artifactId>
<type>jar</type>
<version>1.0.12</version>
</dependency>
Gradle
compile 'in.srain.cube:grid-view-with-header-footer:1.0.12'
使用示例
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
License
Apache 2
联系方式 / 帮助支持
Please fell free to contact me if there is any problem when using the library.
- srain@php.net
- twitter: https://twitter.com/liaohuqiu
- 微博: http://weibo.com/liaohuqiu
- QQ 群: 271918140