百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

android-GridViewWithHeaderAndFooter

> 编程语言
开源

一个可以调用 addHeaderView 和 addFooterView 的 GridView

1.4K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个可以调用 addHeaderView 和 addFooterView 的 GridView

Please follow me on GitHub, I need your support

Github: https://github.com/liaohuqiu

twitter: https://twitter.com/liaohuqiu


中文版文档

GridView with Header and Footer

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

xml
<dependency>
    <groupId>in.srain.cube</groupId>
    <artifactId>grid-view-with-header-footer</artifactId>
    <type>jar</type>
    <version>1.0.12</version>
</dependency>

Gradle

groovy
compile 'in.srain.cube:grid-view-with-header-footer:1.0.12'

Usage

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

License

Apache 2

contact or help

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

  • [email protected]
  • twitter: https://twitter.com/liaohuqiu
  • weibo: http://weibo.com/liaohuqiu
  • QQ tribe: 271918140

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言