Skip to content

Commit 4756be6

Browse files
Merge pull request #3 from SimformSolutionsPvtLtd/feature/UNT-T5356_update_theme_and_manifest
UNT-T5356 change theme and update manifest
2 parents a5bbc15 + c317fb8 commit 4756be6

File tree

28 files changed

+21
-280
lines changed

28 files changed

+21
-280
lines changed

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
# SSPullToRefresh
22
## Pull to Refresh with custom animations
33

4-
[![Build Status](https://travis-ci.org/joemccann/dillinger.svg?branch=master)][git-repo-url]
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.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)
55

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

88
## Features
99

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

1515
# 🎬 Preview
1616

17-
| Default refreshView | customize animation |
18-
|--|--|
19-
| ![](default_view.gif) | ![](custom_anim.gif) |
17+
| Default refreshView | Custom animation 1 | Custom animation 2 |
18+
|--|--| --|
19+
| ![](default_view.gif) | ![](custom_anim.gif) | ![](custom_anim2.gif) |
2020

2121
# How it works:
2222

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

141+
### Credits:
142+
- This library was inspired by __[RecyclerRefreshLayout]__
143+
141144
## Find this library useful? ❤️
142145
Support it by joining __[stargazers]__ for this repository.⭐
143146

@@ -173,3 +176,4 @@ Copyright 2021 Simform Solutions
173176
[stargazers]: <https://www.google.com/>
174177
[Contributing Guide]: <https://www.google.com/>
175178
[GitHub Issues]: <https://github.com/SimformSolutionsPvtLtd/SSPullToRefresh/issues>
179+
[RecyclerRefreshLayout]: <https://github.com/dinuscxj/RecyclerRefreshLayout?utm_source=android-arsenal.com&utm_medium=referral&utm_campaign=3383>

app/src/main/assets/lottie_clock.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

app/src/main/assets/lottie_ester_egg.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/src/main/java/com/simform/demo/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class MainActivity : AppCompatActivity() {
3838
})
3939

4040
ssPullRefresh.setDragDistanceConverter(com.simform.refresh.SSDragDistanceConverter())
41-
ssPullRefresh.setLottieAnimation("lottie_isometric-plane.json")
41+
ssPullRefresh.setLottieAnimation("lottie_clock.json")
4242
ssPullRefresh.setRefreshView(
4343
com.simform.refresh.DefaultAnimationView(this),
4444
ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,300)

app/src/main/res/values/colors.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
<color name="purple_200">#FFBB86FC</color>
44
<color name="purple_500">#FF6200EE</color>
55
<color name="purple_700">#FF3700B3</color>
6+
<color name="colorPrimaryDark">#1c2e4a</color>
7+
<color name="colorPrimary">#203354</color>
8+
<color name="colorPrimaryVariant">#1c2e4a</color>
69
<color name="teal_200">#FF03DAC5</color>
710
<color name="teal_700">#FF018786</color>
811
<color name="black">#FF000000</color>
912
<color name="white">#FFFFFFFF</color>
10-
<color name="blue">#5375F4</color>
13+
<color name="blue">#05445E</color>
1114
</resources>

app/src/main/res/values/themes.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<!-- Base application theme. -->
33
<style name="Theme.PullToRefresh" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
44
<!-- Primary brand color. -->
5-
<item name="colorPrimary">@color/purple_500</item>
6-
<item name="colorPrimaryVariant">@color/purple_700</item>
5+
<item name="colorPrimary">@color/colorPrimary</item>
6+
<item name="colorPrimaryVariant">@color/colorPrimaryVariant</item>
77
<item name="colorOnPrimary">@color/white</item>
88
<!-- Secondary brand color. -->
99
<item name="colorSecondary">@color/teal_200</item>

custom_anim.gif

-1.52 MB
Loading

custom_anim2.gif

6.86 MB
Loading

default_view.gif

787 KB
Loading
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.simform.refresh">
4-
5-
<application
6-
android:allowBackup="true"
7-
android:icon="@mipmap/ic_launcher"
8-
android:label="@string/app_name"
9-
android:roundIcon="@mipmap/ic_launcher_round"
10-
android:supportsRtl="true"
11-
android:theme="@style/Theme.PullToRefresh" />
12-
13-
</manifest>
2+
<manifest package="com.simform.refresh"/>

0 commit comments

Comments
 (0)