https://github.com/tuesda/CircleRefreshLayout
a custom pull-to-refresh layout which contains a interesting animation
https://github.com/tuesda/CircleRefreshLayout
Last synced: about 1 month ago
JSON representation
a custom pull-to-refresh layout which contains a interesting animation
- Host: GitHub
- URL: https://github.com/tuesda/CircleRefreshLayout
- Owner: tuesda
- Created: 2015-07-20T18:19:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T07:27:24.000Z (about 8 years ago)
- Last Synced: 2024-07-31T18:16:24.309Z (9 months ago)
- Language: Java
- Size: 4.16 MB
- Stars: 1,781
- Watchers: 53
- Forks: 369
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- -awesome-android-ui - CircleRefreshLayout
- awesome-android-ui - CircleRefreshLayout
- awesome-android-ui - CircleRefreshLayout
README
This is a project with custom pull-to-refresh layout which contains a interesting animation. And the animation is inspired by made by Ramotion.
###Demo###

###Usage###
``` xml
```Call back when refresh starts and complete:
``` java
mRefreshLayout.setOnRefreshListener(
new CircleRefreshLayout.OnCircleRefreshListener() {
@Override
public void refreshing() {
// do something when refresh starts
}@Override
public void completeRefresh() {
// do something when refresh complete
}
});
```when refreshing is done(for example, the image loading completes), you can invoke:
``` java
mRefreshLayout.finishRefreshing();
```###License###
MIT