Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.6 KB

README-cn.md

File metadata and controls

59 lines (39 loc) · 1.6 KB

Github: https://github.com/liaohuqiu

微博: http://weibo.com/liaohuqiu


GridView with Header and Footer

Screen Shot

只有一个文件,你可以将源代码放入你的项目中。另外项目发布到了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

HeaderGridView

License

Apache 2

联系方式 / 帮助支持

Please fell free to contact me if there is any problem when using the library.