Skip to content

Commit

Permalink
Merge pull request #4 from SimformSolutionsPvtLtd/develop
Browse files Browse the repository at this point in the history
Release 1.1
  • Loading branch information
shwetachauhan-simform authored Jun 23, 2021
2 parents 2db058d + 4756be6 commit 14cd995
Show file tree
Hide file tree
Showing 28 changed files with 21 additions and 280 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# SSPullToRefresh
## Pull to Refresh with custom animations

[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)][git-repo-url]
[![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.5.0-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-21%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=21)

SSPullToRefresh uses lottie animations to render high quality animations on pull refresh.

## Features

- simple and easy to use ( no complex animations to deal with )
- customize the animation view by providing you own ( need to subclass SSAnimationView )
- import lottie jason in assets folder and apply animation ( as simple as that )
- customize repeateMode, repeateCount and Interpolators on different points of animations
- Simple and easy to use ( no complex animations to deal with )
- Customize the animation view by providing you own ( need to subclass SSAnimationView )
- Import lottie jason in assets folder and apply animation ( as simple as that )
- Customize repeateMode, repeateCount and Interpolators on different points of animations

# 🎬 Preview

| Default refreshView | customize animation |
|--|--|
| ![](default_view.gif) | ![](custom_anim.gif) |
| Default refreshView | Custom animation 1 | Custom animation 2 |
|--|--| --|
| ![](default_view.gif) | ![](custom_anim.gif) | ![](custom_anim2.gif) |

# How it works:

Expand Down Expand Up @@ -138,6 +138,9 @@ SSPullToRefresh uses lottie animations to render high quality animations on pull
# Other Library used:
* [Lottie][lottie-repo-url]

### Credits:
- This library was inspired by __[RecyclerRefreshLayout]__

## Find this library useful? ❤️
Support it by joining __[stargazers]__ for this repository.⭐

Expand Down Expand Up @@ -173,3 +176,4 @@ Copyright 2021 Simform Solutions
[stargazers]: <https://www.google.com/>
[Contributing Guide]: <https://www.google.com/>
[GitHub Issues]: <https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/issues>
[RecyclerRefreshLayout]: <https://github.com/dinuscxj/RecyclerRefreshLayout?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=3383>
1 change: 1 addition & 0 deletions app/src/main/assets/lottie_clock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion app/src/main/assets/lottie_ester_egg.json

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/main/java/com/simform/demo/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class MainActivity : AppCompatActivity() {
})

ssPullRefresh.setDragDistanceConverter(com.simform.refresh.SSDragDistanceConverter())
ssPullRefresh.setLottieAnimation("lottie_isometric-plane.json")
ssPullRefresh.setLottieAnimation("lottie_clock.json")
ssPullRefresh.setRefreshView(
com.simform.refresh.DefaultAnimationView(this),
ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,300)
Expand Down
5 changes: 4 additions & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="colorPrimaryDark">#1c2e4a</color>
<color name="colorPrimary">#203354</color>
<color name="colorPrimaryVariant">#1c2e4a</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="blue">#5375F4</color>
<color name="blue">#05445E</color>
</resources>
4 changes: 2 additions & 2 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<!-- Base application theme. -->
<style name="Theme.PullToRefresh" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryVariant">@color/colorPrimaryVariant</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
Expand Down
Binary file modified custom_anim.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added custom_anim2.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified default_view.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 1 addition & 12 deletions sspulltorefresh/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.simform.refresh">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.PullToRefresh" />

</manifest>
<manifest package="com.simform.refresh"/>

This file was deleted.

170 changes: 0 additions & 170 deletions sspulltorefresh/src/main/res/drawable/ic_launcher_background.xml

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 0 additions & 16 deletions sspulltorefresh/src/main/res/values-night/themes.xml

This file was deleted.

10 changes: 0 additions & 10 deletions sspulltorefresh/src/main/res/values/colors.xml

This file was deleted.

3 changes: 0 additions & 3 deletions sspulltorefresh/src/main/res/values/strings.xml

This file was deleted.

16 changes: 0 additions & 16 deletions sspulltorefresh/src/main/res/values/themes.xml

This file was deleted.

0 comments on commit 14cd995

Please sign in to comment.