Skip to content

liaohuqiu/android-GridViewWithHeaderAndFooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d4a99ef · May 16, 2015

History

41 Commits
Mar 26, 2015
May 16, 2015
May 5, 2015
May 13, 2015
Mar 26, 2015
Nov 21, 2014
Nov 24, 2014
Oct 29, 2014
May 16, 2015
May 16, 2015
Mar 26, 2015
Nov 24, 2014
Mar 26, 2015
May 16, 2015
Mar 26, 2015
Mar 26, 2015
May 16, 2015
Oct 29, 2014
Mar 26, 2015
May 16, 2015

Repository files navigation

Github: https://github.com/liaohuqiu

twitter: https://twitter.com/liaohuqiu


GridView with Header and Footer

Screen Shot

This library is contained by CUBE-SDK: https://github.com/etao-open-source/cube-sdk. The Demo is HERE: https://github.com/liaohuqiu/android-cube-app .

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'

Usage

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

contact or help

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