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
@@ -115,8 +119,8 @@ ssPullRefresh.setRefreshStyle(SSPullToRefreshLayout.RefreshStyle.NORMAL)
115119```
116120* To customize the whole refresh view you need to inherit SSAnimationView for your custom class and override the methods needed
117121
118- Here is an example class
119- [ WaveAnimation] [ WaveAnimationFile ] .
122+ Here is an example class
123+ [ WaveAnimation] [ WaveAnimationFile ] .
120124* Provide your CustomView by setRefreshView() method
121125``` kotlin
122126ssPullRefresh.setRefreshView(WaveAnimation (this ))
@@ -189,12 +193,13 @@ SOFTWARE.
189193
190194[ // ] : # ( 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 )
191195
192- [ git-repo-url ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh.git >
193- [ lottie-repo-url ] : < https://github.com/airbnb/lottie-android.git >
194- [ stargazers ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/stargazers >
195- [ Contributing Guide ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/blob/main/CONTRIBUTING.md >
196- [ GitHub Issues ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/issues >
197- [ RecyclerRefreshLayout ] : < https://github.com/dinuscxj/RecyclerRefreshLayout?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=3383 >
198- [ gif-lib-repo ] : < https://github.com/koral--/android-gif-drawable.git >
199- [ SSCustomPullToRefresh ] : < https://github.com/SimformSolutionsPvtLtd/SSCustomPullToRefresh.git >
200- [ WaveAnimationFile ] : app/src/main/java/com/simform/demo/WaveAnimation.kt
196+ [ git-repo-url ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh.git >
197+ [ lottie-repo-url ] : < https://github.com/airbnb/lottie-android.git >
198+ [ stargazers ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/stargazers >
199+ [ Contributing Guide ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/blob/main/CONTRIBUTING.md >
200+ [ GitHub Issues ] : < https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/issues >
201+ [ RecyclerRefreshLayout ] : < https://github.com/dinuscxj/RecyclerRefreshLayout?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=3383 >
202+ [ gif-lib-repo ] : < https://github.com/koral--/android-gif-drawable.git >
203+ [ SSCustomPullToRefresh ] : < https://github.com/SimformSolutionsPvtLtd/SSCustomPullToRefresh.git >
204+ [ WaveAnimationFile ] : app/src/main/java/com/simform/demo/WaveAnimation.kt
205+ [ RefreshCallbacksFile ] : sspulltorefresh/src/main/java/com/simform/refresh/RefreshCallbacks.kt
0 commit comments