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

QuickReturnHeader

> 编程语言
开源

一个 ListView/ScrollView 头部,在向下滚动时隐藏,在向上滚动时立即重新显示,无论我们在列表中滚动了多远。就像 th

371 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一个 ListView/ScrollView 头部,在向下滚动时隐藏,在向上滚动时立即重新显示,无论我们在列表中滚动了多远。就像 th

QuickReturnHeader

###Introduction

QuickReturnHeader is a tiny Android library that implements the popular "quick return" design pattern for lists and scrollable content in general.

In this pattern, which can be found for instance in the Google Keep app, the header hides as soon as we start scrolling down, and reappears inmediately (regardless of how far down the list we are) as soon as we scroll up again. A video is worth a thousand images:

YouTube video coming soon

An alternative, more feature-complete implementation of the pattern can be found here. The benefits of QuickReturnHeader are that it's easier to use, has a simpler implementation, and can be used with ScrollViews in addition to ListViews.

Please keep in mind that this pattern (despite being used by Google itself in several applications) is somewhat controversial. Please read this before you decide whether you should use it in your application.

###Sample application

A sample application showcasing the different features of the library is available:

Google Play link coming soon

You can browse its source code to see how easy it is to integrate QuickReturnHeader in your application.

###Including in your project

Just add the library to your application as a library project. Or if you use maven, add the following dependency to your pom:

xml

    com.github.manuelpeinado.fadingactionbar
    fadingactionbar
    2.1.0
    apklib

###Usage

Using the library is really simple, just look at the source code of the provided samples:

  • If your content should be in a ScrollView.
  • If your content should be in a ListView.

You can even use the library [from a fragment][8], which is useful when implementing a dual phone/tablet layout.

###Who's using it

Does your app use QuickReturnHeader? If you want to be featured on this list drop me a line.

###Developed By

Manuel Peinado Gallego -

###License

Copyright 2013 Manuel Peinado

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

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

> 标签

Java

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

> 工具信息

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

> 相关工具

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