QuickReturnHeader
==================
###Introduction
QuickReturnHeader is a tiny Android library that implements the popular ["quick return" design pattern][1] 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][2]. 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][3]. Please read [this][4] 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][5] 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
<dependency>
<groupId>com.github.manuelpeinado.fadingactionbar</groupId>
<artifactId>fadingactionbar</artifactId>
<version>2.1.0</version>
<type>apklib</type>
</dependency>
```
###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`][6].
* [If your content should be in a `ListView`][7].
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 - <manuel.peinado@gmail.com>
<a href="https://twitter.com/mpg2">
<img alt="Follow me on Twitter"
src="https://raw.github.com/ManuelPeinado/NumericPageIndicator/master/art/twitter.png" />
</a>
<a href="https://plus.google.com/106514622630861903655">
<img alt="Follow me on Google+"
src="https://raw.github.com/ManuelPeinado/NumericPageIndicator/master/art/google-plus.png" />
</a>
<a href="http://www.linkedin.com/pub/manuel-peinado-gallego/1b/435/685">
<img alt="Follow me on LinkedIn"
src="https://raw.github.com/ManuelPeinado/NumericPageIndicator/master/art/linkedin.png" />
###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.
[1]: https://plus.google.com/u/0/+RomanNurik/posts/1Sb549FvpJt
[2]: https://github.com/LarsWerkman/QuickReturnListView
[3]: https://plus.google.com/104844169030193199790/posts/fKEeU4xvKvS
[4]: http://www.androiduipatterns.com/2012/08/an-emerging-ui-pattern-quick-return.html
[5]: http://www.androiduipatterns.com/2012/08/an-emerging-ui-pattern-quick-return.html
[6]: https://github.com/ManuelPeinado/QuickReturnHeader/blob/master/sample/src/com/manuelpeinado/quickreturnheader/demo/ScrollViewSampleActivity.java
[7]: https://github.com/ManuelPeinado/QuickReturnHeader/blob/master/sample/src/com/manuelpeinado/quickreturnheader/demo/ListViewSampleActivity.java
没有合适的资源?快使用搜索试试~ 我知道了~
ListView/ScrollView的header或footer,当向下滚动时消失,向上滚动时出现
共41个文件
xml:13个
png:9个
java:8个
4星 · 超过85%的资源 需积分: 13 54 下载量 4 浏览量
2015-06-14
10:43:38
上传
评论
收藏 956KB ZIP 举报
温馨提示
QuickReturnHeader ListView/ScrollView的header或footer,当向下滚动时消失,向上滚动时出现
资源推荐
资源详情
资源评论
收起资源包目录
QuickReturnHeader-master.zip (41个子文件)
QuickReturnHeader-master
LICENSE.txt 11KB
library
project.properties 584B
src
com
cyrilmottier
android
translucentactionbar
NotifyingScrollView.java 3KB
manuelpeinado
quickreturnheader
ListViewScrollObserver.java 3KB
QuickReturnHeaderHelper.java 10KB
AndroidManifest.xml 322B
res
layout
qrh__listview_container.xml 198B
qrh__scrollview_container.xml 971B
libs
android-support-v4.jar 473KB
proguard-project.txt 781B
README.md 4KB
sample
project.properties 654B
src
com
manuelpeinado
quickreturnheader
demo
HomeActivity.java 2KB
ActivityInfo.java 985B
ScrollViewSampleActivity.java 1KB
ListViewSampleActivity.java 3KB
SnapSampleActivity.java 3KB
AndroidManifest.xml 1KB
res
raw
nyc_sites.txt 2KB
drawable-hdpi
ic_launcher.png 6KB
menu
main.xml 253B
drawable-mdpi
ic_launcher.png 3KB
layout
activity_home.xml 243B
snap_header.xml 2KB
activity_scrollview.xml 804B
header.xml 2KB
activity_listview.xml 187B
drawable-xxhdpi
ic_launcher.png 19KB
drawable-xhdpi
ic_navigation_accept.png 2KB
ic_navigation_refresh.png 3KB
ic_launcher.png 10KB
ic_navigation_cancel.png 1KB
ic_action_help.png 2KB
values
themes.xml 111B
strings.xml 4KB
styles.xml 447B
libs
android-support-v4.jar 473KB
proguard-project.txt 781B
ic_launcher-web.png 52KB
.gitignore 326B
CHANGELOG.md 126B
共 41 条
- 1
资源评论
- u0135344462015-07-06少文件了,根本不能运行,差评
- kalvinyu2016-09-19运行不起来,根本不能用
- hahawa1112015-08-31请作者检查一下 谢谢
- TomMonkey2016-01-18没有弄出效果来...不过还是感谢楼主分享
tomctx
- 粉丝: 8
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功