FlyRefresh史上最有特色的下拉刷新,你再拉,小弟我就飞给你看。支持 ListView, RecyclerView, ScrollView
FlyRefresh史上最有特色的下拉刷新,你再拉,我就飞给你看。支持 ListView, RecyclerView, ScrollView。
FlyRefresh
- 类别: 列表 (ListView)
- 打分: ★★★★★
- 更新: 2015-05-29 12:20
- 大小: 2108 kb
- 开发环境: Android Studio
- 浏览: 1379 次
- 下载: 323 次
- 项目地址: https://github.com/race604/FlyRefresh
下载 收藏
race604 / FlyRefresh
The implementation of https://dribbble.com/shots/2067564-Replace
介绍:
史上最有特色的下拉刷新,你再拉,我就飞给你看。支持 ListView, RecyclerView, ScrollView。
运行效果:
使用说明:
特色
可以扩展收缩的header
支持自定义header view
支持自定义刷新动画。
xml中的基本用法如下:
1
2
3
4
5
6
7
8
9
10
11
12
|
<com.race604.flyrefresh.FlyRefreshLayout
android:id= "@+id/fly_layout"
android:layout_width= "match_parent"
android:layout_height= "match_parent" >
<android.support.v7.widget.RecyclerView
android:id= "@+id/list"
android:layout_width= "match_parent"
android:layout_height= "match_parent"
android:paddingTop= "24dp"
android:background= "#FFFFFF" />
</com.race604.flyrefresh.FlyRefreshLayout>
|
或者你可以使用PullHeaderLayout
,你可以设置如下的属性:
1
2
3
4
5
6
7
8
9
10
11
12
|
<declare-styleable name= "PullHeaderLayout" >
<!-- hader size -->
<attr name= "phl_header_height" format= "dimension" />
<attr name= "phl_header_expand_height" format= "dimension" />
<attr name= "phl_header_shrink_height" format= "dimension" />
<!-- header view id -->
<attr name= "phl_header" format= "reference" />
<!-- content view id -->
<attr name= "phl_content" format= "reference" />
<!-- Float action button icon -->
<attr name= "phl_action" format= "reference" />
</declare-styleable>
|