11<a href =" https://www.simform.com/ " ><img src =" https://github.com/SimformSolutionsPvtLtd/SSToastMessage/blob/master/simformBanner.png " ></a >
22# SSPullToRefresh
33## Pull to Refresh with custom animations
4- [ ![ Build Status ] ( https://travis-ci.org/joemccann/dillinger.svg?branch=master )] [ git-repo-url ] [ ![ ] ( https://jitpack.io/v/SimformSolutionsPvtLtd/SSPullToRefresh.svg )] ( https://jitpack.io/#SimformSolutionsPvtLtd/SSPullToRefresh ) [ ![ Kotlin Version] ( https://img.shields.io/badge/Kotlin-v1.7.10-blue.svg )] ( https://kotlinlang.org ) [ ![ Platform] ( https://img.shields.io/badge/Platform-Android-green.svg?style=flat )] ( https://www.android.com/ ) [ ![ API] ( https://img.shields.io/badge/API-17%2B-brightgreen.svg?style=flat )] ( https://android-arsenal.com/api?level=17 )
4+ [ ![ ] ( https://jitpack.io/v/SimformSolutionsPvtLtd/SSPullToRefresh.svg )] ( https://jitpack.io/#SimformSolutionsPvtLtd/SSPullToRefresh ) [ ![ Kotlin Version] ( https://img.shields.io/badge/Kotlin-v1.7.10-blue.svg )] ( https://kotlinlang.org ) [ ![ Platform] ( https://img.shields.io/badge/Platform-Android-green.svg?style=flat )] ( https://www.android.com/ ) [ ![ API] ( https://img.shields.io/badge/API-17%2B-brightgreen.svg?style=flat )] ( https://android-arsenal.com/api?level=17 )
55
66SSPullToRefresh makes PullRefresh easy to use, you can provide your own custom animations or set simple gifs on refresh view.
77The best feature is Lottie animations in refresh view, it uses lottie animations to render high quality animations on pull refresh.
88
99## Features
1010
1111- Simple and easy to use (no complex animations to deal with)
12- - Customize the animation view by providing your own custom RefreshView (need to subclass SSAnimationView )
12+ - Customize the animation view by providing your own custom interactive RefreshViews (need to implement [ RefreshCallbacks ] [ RefreshCallbacksFile ] )
1313- Set Gif animations in refresh view
1414- Import lottie json in assets folder and apply animation (as simple as that)
1515- Customize repeatMode, repeatCount and Interpolator on different points of animations
@@ -18,11 +18,15 @@ The best feature is Lottie animations in refresh view, it uses lottie animations
1818
1919| Default refreshView | Gif animation | Wave animation (Custom class) |
2020| --| --| --|
21- | < a href = " gifs/default.gif " > ![ ] ( gifs/default.gif ) </ a > | <a href =" https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/blob/529aabcc07246c0d9220f9e93ad85d8509c130f0/ sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt#L237 " >![ ] ( gifs/gif.gif ) </a > | <a href =" app/src/main/java/com/simform/demo/WaveAnimation.kt " >![ ] ( gifs/wave.gif ) </a > |
21+ | ![ ] ( gifs/default.gif ) | <a href =" sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt#L227 " >![ ] ( gifs/gif.gif ) </a > | <a href =" app/src/main/java/com/simform/demo/WaveAnimation.kt " >![ ] ( gifs/wave.gif ) </a > |
2222
2323| Lottie animation 1 | Lottie animation 2 | Lottie animation 3 |
2424| --| --| --|
25- | <a href =" https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/blob/529aabcc07246c0d9220f9e93ad85d8509c130f0/sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt#L228 " >![ ] ( gifs/plane.gif ) </a > | <a href =" https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/blob/529aabcc07246c0d9220f9e93ad85d8509c130f0/sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt#L228 " >![ ] ( gifs/clock.gif ) </a > | <a href =" https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/blob/529aabcc07246c0d9220f9e93ad85d8509c130f0/sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt#L228 " >![ ] ( gifs/virus.gif ) </a > |
25+ | <a href =" sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt#L218 " >![ ] ( gifs/plane.gif ) </a > | <a href =" sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt#L218 " >![ ] ( gifs/clock.gif ) </a > | <a href =" sspulltorefresh/src/main/java/com/simform/refresh/SSPullToRefreshLayout.kt#L218 " >![ ] ( gifs/virus.gif ) </a > |
26+
27+ | Custom view with user interactions |
28+ | --|
29+ | <a href =" app/src/main/java/com/simform/demo/CustomView.kt " >![ ] ( gifs/userinteractive.gif ) </a > |
2630
2731# How it works:
2832
@@ -113,8 +117,8 @@ ssPullRefresh.setRefreshStyle(SSPullToRefreshLayout.RefreshStyle.NORMAL)
113117```
114118* To customize the whole refresh view you need to inherit SSAnimationView for your custom class and override the methods needed
115119
116- Here is an example class
117- [ WaveAnimation] [ WaveAnimationFile ] .
120+ Here is an example class
121+ [ WaveAnimation] [ WaveAnimationFile ] .
118122* Provide your CustomView by setRefreshView() method
119123``` kotlin
120124ssPullRefresh.setRefreshView(WaveAnimation (this ))
@@ -187,12 +191,13 @@ SOFTWARE.
187191
188192[ // ] : # ( These are reference links used in the body of this note and get stripped out when the markdown processor does its job. There is no need to format nicely because it shouldn't be seen. Thanks SO - http://stackoverflow.com/questions/4823468/store-comments-in-markdown-syntax )
189193
190- [ git-repo-url ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh.git >
191- [ lottie-repo-url ] : < https://github.com/airbnb/lottie-android.git >
192- [ stargazers ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/stargazers >
193- [ Contributing Guide ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/blob/main/CONTRIBUTING.md >
194- [ GitHub Issues ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/issues >
195- [ RecyclerRefreshLayout ] : < https://github.com/dinuscxj/RecyclerRefreshLayout?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=3383 >
196- [ gif-lib-repo ] : < https://github.com/koral--/android-gif-drawable.git >
197- [ SSCustomPullToRefresh ] : < https://github.com/SimformSolutionsPvtLtd/SSCustomPullToRefresh.git >
198- [ WaveAnimationFile ] : app/src/main/java/com/simform/demo/WaveAnimation.kt
194+ [ git-repo-url ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh.git >
195+ [ lottie-repo-url ] : < https://github.com/airbnb/lottie-android.git >
196+ [ stargazers ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/stargazers >
197+ [ Contributing Guide ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/blob/main/CONTRIBUTING.md >
198+ [ GitHub Issues ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/issues >
199+ [ RecyclerRefreshLayout ] : < https://github.com/dinuscxj/RecyclerRefreshLayout?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=3383 >
200+ [ gif-lib-repo ] : < https://github.com/koral--/android-gif-drawable.git >
201+ [ SSCustomPullToRefresh ] : < https://github.com/SimformSolutionsPvtLtd/SSCustomPullToRefresh.git >
202+ [ WaveAnimationFile ] : app/src/main/java/com/simform/demo/WaveAnimation.kt
203+ [ RefreshCallbacksFile ] : sspulltorefresh/src/main/java/com/simform/refresh/RefreshCallbacks.kt
0 commit comments