Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/race604/FlyRefresh
The implementation of https://dribbble.com/shots/2067564-Replace
https://github.com/race604/FlyRefresh
Last synced: 2 months ago
JSON representation
The implementation of https://dribbble.com/shots/2067564-Replace
- Host: GitHub
- URL: https://github.com/race604/FlyRefresh
- Owner: race604
- License: mit
- Created: 2015-05-28T10:19:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-14T13:15:48.000Z (almost 9 years ago)
- Last Synced: 2024-08-03T01:20:53.954Z (6 months ago)
- Language: Java
- Homepage:
- Size: 2.08 MB
- Stars: 2,835
- Watchers: 108
- Forks: 545
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - FlyRefresh - 最有特色的下拉刷新 (下拉刷新)
README
# FlyRefresh
The Android implementation of [Replace](https://dribbble.com/shots/2067564-Replace), designed by [Zee Youn](https://dribbble.com/zeeyoung).
I implement this as a **FlyRefresh** layout. The content of the layout can be any `NestedScrollingChild`, such as a RecyclerView, NestedScrollView, VerticalGridView, etc.
This library can also work with `NestedScrollingParent` as parent, such as CoordinatorLayout.# How it looks
![flyrefresh](./images/flyrefresh.gif)# Features
* Work with all [NestedScrollingParent](https://developer.android.com/reference/android/support/v4/view/NestedScrollingParent.html) and [NestedScrollingChild](https://developer.android.com/reference/android/support/v4/view/NestedScrollingChild.html)
* Default minimize configuration for [Replace](https://dribbble.com/shots/2067564-Replace) animation
* Expendable/Shrinkable header
* Support custom header view
* Support custom refresh animation# How to use
Add Gradle dependency:
```gradle
dependencies {
compile 'com.race604.flyrefresh:library:2.0.0'
}
```An example of basic usage in `layout.xml`:
```xml
```
Or you can use `PullHeaderLayout` for more configurations, you can set custom attributes as shown below:
```xml
```
For more, please turn to the source code.# License
`FlyRefresh` is available under the MIT license.