├── .gitignore
├── .idea
├── .name
├── codeStyles
│ └── Project.xml
├── compiler.xml
├── dictionaries
│ └── gk.xml
├── gradle.xml
├── jarRepositories.xml
├── misc.xml
├── runConfigurations.xml
└── vcs.xml
├── LICENSE
├── README.md
├── app
├── .gitignore
├── build.gradle
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── com
│ │ └── gk
│ │ └── emon
│ │ └── easyLoadingDemo
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── assets
│ │ └── cheers.json
│ ├── java
│ │ └── com
│ │ │ └── gk
│ │ │ └── emon
│ │ │ └── easyLoadingDemo
│ │ │ ├── MainActivity.kt
│ │ │ └── SecondActivity.kt
│ └── res
│ │ ├── drawable-v24
│ │ └── ic_launcher_foreground.xml
│ │ ├── drawable
│ │ └── ic_launcher_background.xml
│ │ ├── layout-v21
│ │ └── layout_my_custom_loading.xml
│ │ ├── layout
│ │ ├── activity_main.xml
│ │ ├── activity_second.xml
│ │ ├── content_second.xml
│ │ ├── include_btn.xml
│ │ └── layout_my_custom_loading.xml
│ │ ├── mipmap-anydpi-v26
│ │ ├── ic_launcher.xml
│ │ └── ic_launcher_round.xml
│ │ ├── mipmap-hdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-mdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ ├── mipmap-xxxhdpi
│ │ ├── ic_launcher.png
│ │ └── ic_launcher_round.png
│ │ └── values
│ │ ├── colors.xml
│ │ ├── dimens.xml
│ │ ├── strings.xml
│ │ └── styles.xml
│ └── test
│ └── java
│ └── com
│ └── gk
│ └── emon
│ └── easyLoadingDemo
│ └── ExampleUnitTest.java
├── build.gradle
├── easy-loading.webp
├── easy-loading
├── .gitignore
├── build.gradle
├── consumer-rules.pro
├── proguard-rules.pro
└── src
│ ├── androidTest
│ └── java
│ │ └── com
│ │ └── gk
│ │ └── emon
│ │ └── lovelyloading
│ │ └── ExampleInstrumentedTest.java
│ ├── main
│ ├── AndroidManifest.xml
│ ├── assets
│ │ └── Loading.json
│ ├── java
│ │ └── com
│ │ │ └── gk
│ │ │ └── emon
│ │ │ └── lovelyLoading
│ │ │ ├── ColorTransparentUtils.kt
│ │ │ └── LoadingPopup.kt
│ └── res
│ │ ├── layout
│ │ └── dialog_lottie_loading_popup.xml
│ │ └── values
│ │ └── strings.xml
│ └── test
│ └── java
│ └── com
│ └── gk
│ └── emon
│ └── lovelyloading
│ └── ExampleUnitTest.java
├── gradle.properties
├── gradle
└── wrapper
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
└── settings.gradle
/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | .gradle
3 | /local.properties
4 | /.idea/caches
5 | /.idea/libraries
6 | /.idea/modules.xml
7 | /.idea/workspace.xml
8 | /.idea/navEditor.xml
9 | /.idea/assetWizardSettings.xml
10 | .DS_Store
11 | /build
12 | /captures
13 | .externalNativeBuild
14 | .cxx
15 |
--------------------------------------------------------------------------------
/.idea/.name:
--------------------------------------------------------------------------------
1 | Easy Android Loading
--------------------------------------------------------------------------------
/.idea/codeStyles/Project.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 | xmlns:android
32 |
33 | ^$
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | xmlns:.*
43 |
44 | ^$
45 |
46 |
47 | BY_NAME
48 |
49 |
50 |
51 |
52 |
53 |
54 | .*:id
55 |
56 | http://schemas.android.com/apk/res/android
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 | .*:name
66 |
67 | http://schemas.android.com/apk/res/android
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | name
77 |
78 | ^$
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 | style
88 |
89 | ^$
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 | .*
99 |
100 | ^$
101 |
102 |
103 | BY_NAME
104 |
105 |
106 |
107 |
108 |
109 |
110 | .*
111 |
112 | http://schemas.android.com/apk/res/android
113 |
114 |
115 | ANDROID_ATTRIBUTE_ORDER
116 |
117 |
118 |
119 |
120 |
121 |
122 | .*
123 |
124 | .*
125 |
126 |
127 | BY_NAME
128 |
129 |
130 |
131 |
132 |
133 |
134 |
--------------------------------------------------------------------------------
/.idea/compiler.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/.idea/dictionaries/gk.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | emon
5 |
6 |
7 |
--------------------------------------------------------------------------------
/.idea/gradle.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/.idea/jarRepositories.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/.idea/misc.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/runConfigurations.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Easy Loading For Android By Just A One Lined Code !!!
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | Just configure a singleton loading instance once without additional boilerplate code and reuse it to show and hide from anywhere (Both Activity or Fragment) you want .
13 |
14 |
15 |
16 |
17 |
18 |
19 | 📖 Table of Contents
20 |
21 |
22 | [](#table-of-contents)
23 |
24 | ## ➤ Table of Contents
25 |
26 | * [➤ Installation](#-installation)
27 | * [➤ Getting Started](#-getting-started)
28 | * [➤ License](#-license)
29 |
30 |
31 |
32 | [](#installation)
33 |
34 | ## ➤ Installation
35 |
36 | **Step 1**. Add the JitPack repository to your root ```build.gradle``` at the end of repositories
37 | ```
38 | android {
39 | .
40 | .
41 | allprojects {
42 | repositories {
43 | // ...
44 | maven { url 'https://jitpack.io' }
45 | }
46 | }
47 | .
48 | .
49 | ```
50 |
51 | **Step 2**. Add the dependency
52 | ```
53 | dependencies {
54 | implementation 'com.github.Gkemon:Easy-Android-Loading:1.1'
55 | }
56 | ```
57 | [](#getting-started-quick)
58 |
59 |
60 |
61 | ## ➤ Getting Started
62 |
63 | ### Setup default configuration :
64 |
65 |
66 | ```
67 | class MainActivity : AppCompatActivity() {
68 | .
69 | .
70 | .
71 | override fun onCreate(savedInstanceState: Bundle?) {
72 | super.onCreate(savedInstanceState)
73 | setContentView(R.layout.activity_main)
74 |
75 | /* It is the mandatory configuration which is needed to be
76 | * declared after calling setContentView --*/
77 |
78 | LoadingPopup.getInstance(activity)
79 | .defaultLovelyLoading()
80 | .build()
81 |
82 | /*OR*/
83 |
84 | /* If adding background color or opacity is needed then -- */
85 | LoadingPopup.getInstance(activity)
86 | .defaultLovelyLoading()
87 | .setBackgroundColor(android.R.color.holo_red_dark)
88 | .setBackgroundOpacity(myBackgroundOpacity)/*Int between 0-100*/
89 | .build()
90 | .
91 | .
92 | }
93 | ```
94 |
95 | ### Setup custom configuration :
96 |
97 |
98 | ```
99 | class MainActivity : AppCompatActivity() {
100 | .
101 | .
102 | .
103 | override fun onCreate(savedInstanceState: Bundle?) {
104 | super.onCreate(savedInstanceState)
105 | setContentView(R.layout.activity_main)
106 |
107 | LoadingPopup.getInstance(activity)
108 | .customLoading()
109 | .setCustomViewID(R.layout.layout_my_custom_loading)
110 | /*layout resource id which holds the custom loading view. If setting up
111 | *background color is needed for the inputted layout then call it like that
112 | *setCustomViewID(R.layout.layout_my_custom_loading,R.color.my_color)*/
113 | .doIntentionalDelay()
114 | /*If intentional delay is needed. Otherwise call .noIntentionalDelay()*/
115 | .setDelayDurationInMillSec(5000)
116 | .setBackgroundOpacity(myBackgroundOpacity)
117 | .build()
118 |
119 | .
120 | .
121 | }
122 | ```
123 |
124 | ### Showing or Hiding Loading:
125 |
126 | ```
127 |
128 | /* For showing loading just call --> */
129 | LoadingPopup.showLoadingPopUp()
130 |
131 |
132 | /* For hiding loading just call --> */
133 | LoadingPopup.hideLoadingPopUp()
134 |
135 | ```
136 |
137 |
138 | LinkedIn
139 |
140 |
141 | Inbox
142 |
143 |
144 |
145 | #### Logo credit: [Alex Gorbunov](https://dribbble.com/shots/11116681-Spiral-pre-loader-concept)
146 |
147 | ## ➤ License
148 |
149 | The source code is licensed under the [Apache License 2.0](https://github.com/Gkemon/XML-to-PDF-generator/blob/master/LICENSE).
150 |
151 |
152 | [](#license)
153 |
154 |
155 |
--------------------------------------------------------------------------------
/app/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.application'
2 | apply plugin: 'kotlin-android'
3 |
4 | android {
5 | compileSdkVersion 30
6 | defaultConfig {
7 | applicationId "com.gk.emon.easyloading"
8 | minSdkVersion 16
9 | targetSdkVersion 30
10 | versionCode 1
11 | versionName "1.0"
12 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
13 | }
14 | buildTypes {
15 | release {
16 | minifyEnabled false
17 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
18 | }
19 | }
20 | }
21 |
22 | dependencies {
23 | implementation fileTree(dir: 'libs', include: ['*.jar'])
24 | implementation 'androidx.appcompat:appcompat:1.2.0'
25 | implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
26 | implementation 'com.google.android.material:material:1.3.0'
27 | implementation 'petrov.kristiyan:colorpicker-library:1.1.10'
28 | testImplementation 'junit:junit:4.13.2'
29 | androidTestImplementation 'androidx.test.ext:junit:1.1.2'
30 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
31 | /*
32 | implementation project(path: ':easy-loading')
33 | */
34 | implementation 'com.github.Gkemon:Easy-Android-Loading:1.1'
35 |
36 | implementation "androidx.core:core-ktx:1.3.2"
37 | implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1'
38 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
39 |
40 | }
41 | repositories {
42 | mavenCentral()
43 | }
44 |
--------------------------------------------------------------------------------
/app/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/app/src/androidTest/java/com/gk/emon/easyLoadingDemo/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.gk.emon.easyLoadingDemo;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.platform.app.InstrumentationRegistry;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.*;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 |
25 | assertEquals("com.gk.emon.lovelyloading", appContext.getPackageName());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
12 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/assets/cheers.json:
--------------------------------------------------------------------------------
1 | {"v":"5.5.10","fr":60,"ip":0,"op":166,"w":512,"h":512,"nm":"008-cheers","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":0,"nm":"Goblet Animation","parent":2,"refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"s":true,"x":{"a":0,"k":100,"ix":3},"y":{"a":0,"k":555.856,"ix":4}},"a":{"a":0,"k":[100,555.856,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":200,"h":600,"ip":-141,"op":8.99999999999999,"st":-141,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Goblet Animation","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.847],"y":[1.426]},"o":{"x":[0.319],"y":[0.35]},"t":0,"s":[0]},{"i":{"x":[0.498],"y":[0.899]},"o":{"x":[0.213],"y":[0.149]},"t":33,"s":[3]},{"i":{"x":[0.693],"y":[1.084]},"o":{"x":[0.363],"y":[0.861]},"t":83,"s":[-15]},{"i":{"x":[0.682],"y":[0.966]},"o":{"x":[0.367],"y":[0.105]},"t":97,"s":[-15.44]},{"i":{"x":[0.661],"y":[0.231]},"o":{"x":[0.33],"y":[-0.034]},"t":120,"s":[-14.752]},{"i":{"x":[0.986],"y":[0.846]},"o":{"x":[0.602],"y":[0.079]},"t":128,"s":[-15]},{"t":149,"s":[-30]}],"ix":10},"p":{"s":true,"x":{"a":1,"k":[{"i":{"x":[0.435],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":0,"s":[254]},{"i":{"x":[0.533],"y":[0.586]},"o":{"x":[0.427],"y":[0]},"t":33,"s":[294]},{"i":{"x":[0.644],"y":[0.992]},"o":{"x":[0.299],"y":[0.733]},"t":83,"s":[429]},{"i":{"x":[0.817],"y":[1.783]},"o":{"x":[0.391],"y":[-0.023]},"t":96,"s":[438.8]},{"i":{"x":[0.972],"y":[0.918]},"o":{"x":[0.821],"y":[0.07]},"t":128,"s":[429]},{"t":149,"s":[854]}],"ix":3},"y":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":0,"s":[640]},{"i":{"x":[0.405],"y":[0.757]},"o":{"x":[0.333],"y":[0]},"t":33,"s":[565]},{"i":{"x":[0.705],"y":[1.003]},"o":{"x":[0.377],"y":[0.744]},"t":83,"s":[601]},{"i":{"x":[0.691],"y":[0.976]},"o":{"x":[0.396],"y":[0.004]},"t":97,"s":[603.369]},{"i":{"x":[0.655],"y":[0.247]},"o":{"x":[0.325],"y":[-0.025]},"t":121,"s":[599.981]},{"i":{"x":[0.986],"y":[0.819]},"o":{"x":[0.545],"y":[0.063]},"t":128,"s":[601]},{"t":149,"s":[667]}],"ix":4}},"a":{"a":0,"k":[100,555.856,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":200,"h":600,"ip":9,"op":159,"st":9,"bm":0},{"ddd":0,"ind":3,"ty":0,"nm":"Goblet Animation","parent":4,"refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"s":true,"x":{"a":0,"k":100,"ix":3},"y":{"a":0,"k":555.856,"ix":4}},"a":{"a":0,"k":[100,555.856,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":200,"h":600,"ip":-132,"op":18,"st":-132,"bm":0},{"ddd":0,"ind":4,"ty":0,"nm":"Goblet Animation","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.421],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[31]},{"i":{"x":[0.629],"y":[0.749]},"o":{"x":[0.596],"y":[0]},"t":33,"s":[2]},{"i":{"x":[0.694],"y":[0.956]},"o":{"x":[0.362],"y":[0.681]},"t":86,"s":[15]},{"i":{"x":[0.74],"y":[0.966]},"o":{"x":[0.415],"y":[-0.086]},"t":100,"s":[15.998]},{"i":{"x":[0.689],"y":[0.236]},"o":{"x":[0.356],"y":[-0.039]},"t":126,"s":[14.709]},{"i":{"x":[0.501],"y":[1]},"o":{"x":[0.167],"y":[0]},"t":131,"s":[15]},{"t":166,"s":[0]}],"ix":10},"p":{"s":true,"x":{"a":1,"k":[{"i":{"x":[0],"y":[1]},"o":{"x":[0.472],"y":[0]},"t":0,"s":[-309]},{"i":{"x":[0.48],"y":[0.405]},"o":{"x":[0.388],"y":[0]},"t":33,"s":[177]},{"i":{"x":[0.702],"y":[0.973]},"o":{"x":[0.371],"y":[0.707]},"t":86,"s":[75]},{"i":{"x":[0.721],"y":[0.871]},"o":{"x":[0.408],"y":[-0.049]},"t":101,"s":[60.035]},{"i":{"x":[0.675],"y":[-0.029]},"o":{"x":[0.344],"y":[-0.254]},"t":125,"s":[77.785]},{"i":{"x":[0.496],"y":[1]},"o":{"x":[0.318],"y":[-0.081]},"t":131,"s":[75]},{"t":166,"s":[254]}],"ix":3},"y":{"a":1,"k":[{"i":{"x":[0.064],"y":[1]},"o":{"x":[0.381],"y":[0]},"t":0,"s":[673]},{"i":{"x":[0.484],"y":[0.749]},"o":{"x":[0.487],"y":[0]},"t":33,"s":[535]},{"i":{"x":[0.703],"y":[0.973]},"o":{"x":[0.369],"y":[0.71]},"t":86,"s":[601]},{"i":{"x":[0.814],"y":[1]},"o":{"x":[0.472],"y":[-0.059]},"t":105,"s":[605.887]},{"i":{"x":[0.506],"y":[1]},"o":{"x":[0.245],"y":[0]},"t":131,"s":[601]},{"t":166,"s":[640]}],"ix":4}},"a":{"a":0,"k":[100,555.856,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":200,"h":600,"ip":17,"op":167,"st":17,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":4,"ty":4,"nm":"Goblet Shadow","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-15,"ix":10},"p":{"a":0,"k":[103,416.092,0],"ix":2},"a":{"a":0,"k":[18.109,299.852,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0.493,5.752],[0,0],[-2.648,8.052],[-2.057,0.477],[3.966,1.062],[1.344,-2.909],[-7.957,-92.749],[0,0],[1.511,-7.665],[-3.073,-3.29],[2.144,-10.602],[-8.558,-16.136],[-3.474,10.208],[0.872,-0.105],[-0.065,0.036],[-0.001,-0.001],[0,0.001],[0,0],[0,0],[0.313,0.043]],"o":[[0,0],[-8.167,-95.2],[0.847,-1.835],[-13.277,-3.558],[-3.557,-0.953],[-2.579,7.845],[0,0],[-1.347,6.883],[-0.93,4.717],[-2.056,10.377],[3.649,-2.471],[3.52,-10.478],[-0.83,0.257],[-10.551,-18.486],[0.001,0],[0,-0.001],[0,0],[0,0],[-0.312,-0.035],[-3.873,-4.507]],"v":[[0.423,67.766],[-2.4,34.861],[30.204,-130.876],[34.842,-134.453],[6.563,-142.03],[-1.964,-138.627],[-33.728,22.843],[-30.978,54.9],[-27.436,91.306],[-23.805,103.972],[-30.167,135.773],[-5.027,142.323],[5.586,110.949],[3.026,111.487],[8.082,84.379],[8.085,84.38],[8.084,84.378],[8.085,84.377],[8.211,83.558],[7.272,83.437]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.995999983245,0.675,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[41.934,143.234],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":32,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shadow 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":360,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":0,"nm":"Goblet 1","refId":"comp_2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[100,300,0],"ix":2},"a":{"a":0,"k":[256,256,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":512,"h":512,"ip":0,"op":60,"st":0,"bm":0},{"ddd":0,"ind":6,"ty":0,"nm":"Goblet 2","refId":"comp_3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[100,300,0],"ix":2},"a":{"a":0,"k":[256,256,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":512,"h":512,"ip":60,"op":150,"st":60,"bm":0}]},{"id":"comp_2","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Goblet FX","parent":3,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[18.109,299.852,0],"ix":2},"a":{"a":0,"k":[18.109,299.852,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-9.737,-9.297],[-30.434,10.911]],"o":[[19.972,19.069],[12.743,-4.568]],"v":[[14.424,125.178],[117.588,149.662]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":12,"s":[100]},{"t":30,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"t":17,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.992156922583,0.792156922583,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-10.254,-8.724],[-17.002,3.031]],"o":[[16.017,13.628],[10.523,-1.876]],"v":[[25.108,166.298],[97.002,181.579]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.992156922583,0.792156922583,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":18,"s":[100]},{"t":36,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":6,"s":[100]},{"t":23,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-11.4,-7.161],[-12.392,2.989]],"o":[[13.529,8.498],[13.16,-3.174]],"v":[[31.379,199.323],[79.724,207.554]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.992156922583,0.792156922583,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":21,"s":[100]},{"t":39,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":9,"s":[100]},{"t":26,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":240,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Goblet","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-15,"ix":10},"p":{"a":0,"k":[258,370.092,0],"ix":2},"a":{"a":0,"k":[18.109,299.852,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[{"i":[[30.688,-3.779],[-3.726,20.356],[-3.894,-37.247],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-5.572,12.093]],"o":[[-42.806,5.271],[-9.226,42.356],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[12.488,-19.209],[3.678,-7.157]],"v":[[-4.99,-44.094],[-58.32,-86.928],[-61.027,33.8],[-48.439,54.449],[-47.999,54.735],[-44.316,56.93],[-44.264,56.956],[-37.371,59.595],[-27.328,62.287],[-27.31,62.291],[-25.371,62.738],[-24.137,62.969],[-23.074,63.136],[6.056,51.775],[24.467,25.387],[51.026,-21.915]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":19,"s":[{"i":[[18.857,17.817],[0.419,-7.161],[-3.894,-37.248],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-7.521,24.768]],"o":[[-27.246,-25.743],[-1.476,25.231],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[20.657,-29.607],[-5.285,8.964]],"v":[[10.869,-41.682],[-63.32,-54.678],[-61.027,33.801],[-48.439,54.449],[-47.999,54.734],[-44.316,56.93],[-44.264,56.956],[-37.371,59.595],[-27.328,62.286],[-27.31,62.29],[-25.371,62.738],[-24.137,62.968],[-23.074,63.135],[6.055,51.774],[24.467,25.386],[60.308,-44.168]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":40,"s":[{"i":[[30.839,1.569],[0.391,-6.653],[-3.894,-37.247],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-12.155,36.08]],"o":[[-43.806,-2.229],[-1.226,20.856],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[20.657,-29.607],[-13.423,32.117]],"v":[[-7.74,-29.594],[-64.07,-46.428],[-61.027,33.8],[-48.439,54.448],[-47.999,54.734],[-44.316,56.93],[-44.264,56.955],[-37.371,59.594],[-27.327,62.286],[-27.311,62.29],[-25.37,62.737],[-24.137,62.968],[-23.073,63.135],[6.055,51.774],[24.466,25.386],[64.921,-56.101]],"c":true}]},{"t":60,"s":[{"i":[[30.688,-3.779],[-3.726,20.356],[-3.894,-37.247],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-5.572,12.093]],"o":[[-42.806,5.271],[-9.226,42.356],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[12.488,-19.209],[3.678,-7.157]],"v":[[-4.99,-44.094],[-58.32,-86.928],[-61.027,33.8],[-48.439,54.449],[-47.999,54.735],[-44.316,56.93],[-44.264,56.956],[-37.371,59.595],[-27.328,62.287],[-27.31,62.291],[-25.371,62.738],[-24.137,62.969],[-23.074,63.136],[6.056,51.775],[24.467,25.387],[51.026,-21.915]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.957000014361,0.258999992819,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[71.983,164.333],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Liquid 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[{"i":[[25.006,16.637],[6.274,-31.894],[-3.894,-37.248],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-5.572,10.093]],"o":[[-28.056,-18.666],[-4.976,31.106],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[15.488,-24.959],[-4.572,7.593]],"v":[[-7.74,-37.406],[-59.32,-81.428],[-61.027,33.801],[-48.439,54.448],[-47.999,54.734],[-44.316,56.93],[-44.264,56.955],[-37.371,59.594],[-27.327,62.286],[-27.31,62.29],[-25.371,62.737],[-24.136,62.968],[-23.073,63.135],[6.056,51.774],[24.467,25.387],[51.276,-22.165]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":19,"s":[{"i":[[18.759,-36.304],[0.457,-7.421],[-3.894,-37.248],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-7.487,24.824]],"o":[[-13.103,25.358],[-1.468,25.179],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[20.657,-29.607],[7.192,-28.874]],"v":[[-19.106,-49.195],[-63.327,-54.557],[-61.027,33.801],[-48.439,54.448],[-47.999,54.734],[-44.316,56.93],[-44.264,56.955],[-37.371,59.594],[-27.327,62.286],[-27.31,62.29],[-25.371,62.737],[-24.137,62.968],[-23.073,63.135],[6.056,51.774],[24.467,25.387],[60.421,-44.626]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":40,"s":[{"i":[[44.251,25.936],[2.824,-23.763],[-3.894,-37.248],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-5.322,28.344]],"o":[[-30.82,-18.064],[-0.976,21.856],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[20.657,-29.607],[4.428,-15.157]],"v":[[-17.071,-49.375],[-63.82,-46.928],[-61.027,33.801],[-48.439,54.448],[-47.999,54.734],[-44.316,56.93],[-44.264,56.955],[-37.371,59.594],[-27.328,62.286],[-27.311,62.29],[-25.371,62.737],[-24.136,62.968],[-23.073,63.135],[6.056,51.774],[24.467,25.387],[64.671,-56.851]],"c":true}]},{"t":60,"s":[{"i":[[25.006,16.637],[6.274,-31.894],[-3.894,-37.248],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-5.572,10.093]],"o":[[-28.056,-18.666],[-4.976,31.106],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[15.488,-24.959],[-4.572,7.593]],"v":[[-7.74,-37.406],[-59.32,-81.428],[-61.027,33.801],[-48.439,54.448],[-47.999,54.734],[-44.316,56.93],[-44.264,56.955],[-37.371,59.594],[-27.327,62.286],[-27.31,62.29],[-25.371,62.737],[-24.136,62.968],[-23.073,63.135],[6.056,51.774],[24.467,25.387],[51.276,-22.165]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.992156922583,0.792156922583,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[71.983,164.333],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Liquid 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-12.607,-3.378],[-3.512,-0.94],[-7.011,9.046],[-0.165,0.052],[2.521,-7.381],[7.343,1.967],[0,0],[-1.469,7.458],[-1.347,6.881],[-0.132,-0.15]],"o":[[3.512,0.94],[12.607,3.378],[0.188,-0.061],[-2.271,6.625],[-2.456,7.195],[0,0],[-7.343,-1.968],[1.51,-7.665],[0.118,0.127],[1.55,11.338]],"v":[[-8.995,-4.502],[1.048,-1.812],[33.68,-11.344],[34.214,-11.515],[12.895,18.23],[-4.518,27.522],[-18.891,23.671],[-29.326,6.918],[-32.867,-29.489],[-32.49,-29.072]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.894000004787,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[43.824,227.622],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.722,0.729],[0,0],[1.792,1.935],[3.08,-15.04],[-3.809,-2.485],[-5.959,17.508]],"o":[[0,0],[-2.722,-0.728],[-3.004,15.164],[4.074,3.644],[5.567,-16.826],[-2.519,0.78]],"v":[[11.275,-22.566],[-3.099,-26.419],[-9.949,-30.551],[-42.195,123.676],[-31.794,132.385],[19.273,-22.72]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.976000019148,0.882000014361,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.248,276.904],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 6","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-2.58,7.845],[-3.558,-0.953],[-11.638,-3.118],[0.291,-3.19],[53.057,-76.047],[0,0],[13.061,3.499],[3.512,0.941],[1.017,11.85],[0,0]],"o":[[1.343,-2.909],[11.613,3.112],[3.557,0.953],[-1.693,8.101],[0,0],[-6.805,9.754],[-3.512,-0.941],[-13.06,-3.5],[0,0],[-7.957,-92.748]],"v":[[-35.138,-110.578],[-26.611,-113.981],[68.885,-88.393],[74.568,-81.183],[21.342,74.536],[2.931,100.923],[-30.453,111.435],[-40.496,108.744],[-64.152,82.949],[-66.902,50.891]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.976000019148,0.882000014361,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[75.109,115.184],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 7","np":4,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":240,"st":0,"bm":0}]},{"id":"comp_3","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Goblet FX","parent":3,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[18.109,299.852,0],"ix":2},"a":{"a":0,"k":[18.109,299.852,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-9.737,-9.297],[-30.434,10.911]],"o":[[19.972,19.069],[12.743,-4.568]],"v":[[14.424,125.178],[117.588,149.662]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":18,"s":[100]},{"t":45,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"t":25.5,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.992156922583,0.792156922583,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-10.254,-8.724],[-17.002,3.031]],"o":[[16.017,13.628],[10.523,-1.876]],"v":[[25.108,166.298],[97.002,181.579]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.992156922583,0.792156922583,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":1,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":27,"s":[100]},{"t":54,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":9,"s":[100]},{"t":34.5,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-11.4,-7.161],[-12.392,2.989]],"o":[[13.529,8.498],[13.16,-3.174]],"v":[[31.379,199.323],[79.724,207.554]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[0.992156922583,0.792156922583,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31.5,"s":[100]},{"t":58.5,"s":[0]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":13.5,"s":[100]},{"t":39,"s":[0]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":4,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 3","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":240,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Goblet","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-15,"ix":10},"p":{"a":0,"k":[258,370.092,0],"ix":2},"a":{"a":0,"k":[18.109,299.852,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[{"i":[[30.688,-3.779],[-3.726,20.356],[-3.894,-37.247],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-5.572,12.093]],"o":[[-42.806,5.271],[-9.226,42.356],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[12.488,-19.209],[3.678,-7.157]],"v":[[-4.99,-44.094],[-58.32,-86.928],[-61.027,33.8],[-48.439,54.449],[-47.999,54.735],[-44.316,56.93],[-44.264,56.956],[-37.371,59.595],[-27.328,62.287],[-27.31,62.291],[-25.371,62.738],[-24.137,62.969],[-23.074,63.136],[6.056,51.775],[24.467,25.387],[51.026,-21.915]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":29,"s":[{"i":[[18.857,17.817],[0.419,-7.161],[-3.894,-37.248],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-8.037,21.167]],"o":[[-27.246,-25.743],[-1.476,25.231],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[20.657,-29.607],[-6.54,7.851]],"v":[[10.869,-41.682],[-63.32,-54.678],[-61.027,33.801],[-48.439,54.449],[-47.999,54.734],[-44.316,56.93],[-44.264,56.956],[-37.371,59.595],[-27.328,62.286],[-27.31,62.29],[-25.371,62.738],[-24.137,62.968],[-23.074,63.135],[6.055,51.774],[24.467,25.386],[57.884,-37.053]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":60,"s":[{"i":[[30.156,4.028],[0.391,-6.653],[-3.894,-37.247],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-11.646,27.416]],"o":[[-43.477,-5.808],[-1.226,20.856],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[14.649,-23.442],[-15.042,13.048]],"v":[[-7.092,-32.008],[-64.07,-46.428],[-61.027,33.8],[-48.439,54.448],[-47.999,54.734],[-44.316,56.93],[-44.264,56.955],[-37.371,59.594],[-27.327,62.286],[-27.311,62.29],[-25.37,62.737],[-24.137,62.968],[-23.073,63.135],[6.055,51.774],[24.466,25.386],[57.119,-35.674]],"c":true}]},{"t":90,"s":[{"i":[[31.259,2.22],[9.424,10.679],[-3.894,-37.247],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-5.572,12.093]],"o":[[-41.247,-2.929],[-2.984,30.907],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[12.488,-19.209],[3.678,-7.157]],"v":[[-4.977,-41.243],[-62.328,-61.344],[-61.027,33.8],[-48.439,54.449],[-47.999,54.735],[-44.316,56.93],[-44.264,56.956],[-37.371,59.595],[-27.328,62.287],[-27.31,62.291],[-25.371,62.738],[-24.137,62.969],[-23.074,63.136],[6.056,51.775],[24.467,25.386],[51.026,-21.915]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.957000014361,0.258999992819,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[71.983,164.333],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Liquid 1","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":1,"k":[{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":0,"s":[{"i":[[25.006,16.637],[6.274,-31.894],[-3.894,-37.248],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-5.572,10.093]],"o":[[-28.056,-18.666],[-4.976,31.106],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[15.488,-24.959],[-4.572,7.593]],"v":[[-7.74,-37.406],[-59.32,-81.428],[-61.027,33.801],[-48.439,54.448],[-47.999,54.734],[-44.316,56.93],[-44.264,56.955],[-37.371,59.594],[-27.327,62.286],[-27.31,62.29],[-25.371,62.737],[-24.136,62.968],[-23.073,63.135],[6.056,51.774],[24.467,25.387],[51.276,-22.165]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":29,"s":[{"i":[[15.48,-14.407],[0.457,-7.421],[-3.894,-37.248],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-8.28,22.108]],"o":[[-20.894,19.446],[-1.468,25.179],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[18.246,-28.173],[3.965,-10.069]],"v":[[-19.106,-49.195],[-63.327,-54.557],[-61.027,33.801],[-48.439,54.448],[-47.999,54.734],[-44.316,56.93],[-44.264,56.955],[-37.371,59.594],[-27.327,62.286],[-27.31,62.29],[-25.371,62.737],[-24.137,62.968],[-23.073,63.135],[6.056,51.774],[24.467,25.387],[57.997,-37.511]],"c":true}]},{"i":{"x":0.833,"y":0.833},"o":{"x":0.167,"y":0.167},"t":60,"s":[{"i":[[46.903,20.758],[0.873,-8.757],[-3.894,-37.248],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-9.713,21.888]],"o":[[-30.954,-13.7],[-0.976,21.856],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[17.392,-27.884],[4.428,-15.157]],"v":[[-18.99,-47.043],[-63.82,-46.928],[-61.027,33.801],[-48.439,54.448],[-47.999,54.734],[-44.316,56.93],[-44.264,56.955],[-37.371,59.594],[-27.328,62.286],[-27.311,62.29],[-25.371,62.737],[-24.136,62.968],[-23.073,63.135],[6.056,51.774],[24.467,25.387],[57.287,-36.053]],"c":true}]},{"t":90,"s":[{"i":[[26.108,14.849],[1.344,-10.195],[-3.894,-37.248],[-7.142,-5.019],[-0.144,-0.098],[-1.289,-0.658],[-0.017,-0.009],[-2.43,-0.651],[-3.513,-0.942],[-0.006,-0.002],[-0.664,-0.136],[-0.412,-0.071],[-0.353,-0.048],[-6.067,8.697],[0,0],[-5.572,10.093]],"o":[[-28.799,-16.379],[-2.23,29.224],[0.472,4.518],[0.143,0.101],[1.172,0.797],[0.017,0.009],[2.156,1.096],[3.512,0.942],[0.005,0.001],[0.619,0.165],[0.412,0.086],[0.356,0.061],[11.657,1.646],[0,0],[15.488,-24.959],[-4.572,7.593]],"v":[[-7.74,-37.406],[-62.387,-61.286],[-61.027,33.8],[-48.439,54.448],[-47.999,54.734],[-44.316,56.93],[-44.264,56.955],[-37.371,59.594],[-27.327,62.286],[-27.31,62.29],[-25.371,62.737],[-24.136,62.968],[-23.073,63.135],[6.056,51.774],[24.467,25.387],[51.276,-22.165]],"c":true}]}],"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[0.992156922583,0.792156922583,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[71.983,164.333],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Liquid 2","np":2,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-12.607,-3.378],[-3.512,-0.94],[-7.011,9.046],[-0.165,0.052],[2.521,-7.381],[7.343,1.967],[0,0],[-1.469,7.458],[-1.347,6.881],[-0.132,-0.15]],"o":[[3.512,0.94],[12.607,3.378],[0.188,-0.061],[-2.271,6.625],[-2.456,7.195],[0,0],[-7.343,-1.968],[1.51,-7.665],[0.118,0.127],[1.55,11.338]],"v":[[-8.995,-4.502],[1.048,-1.812],[33.68,-11.344],[34.214,-11.515],[12.895,18.23],[-4.518,27.522],[-18.891,23.671],[-29.326,6.918],[-32.867,-29.489],[-32.49,-29.072]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.894000004787,0,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[43.824,227.622],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 5","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[2.722,0.729],[0,0],[1.792,1.935],[3.08,-15.04],[-3.809,-2.485],[-5.959,17.508]],"o":[[0,0],[-2.722,-0.728],[-3.004,15.164],[4.074,3.644],[5.567,-16.826],[-2.519,0.78]],"v":[[11.275,-22.566],[-3.099,-26.419],[-9.949,-30.551],[-42.195,123.676],[-31.794,132.385],[19.273,-22.72]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.976000019148,0.882000014361,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[28.248,276.904],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 6","np":2,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-2.58,7.845],[-3.558,-0.953],[-11.638,-3.118],[0.291,-3.19],[53.057,-76.047],[0,0],[13.061,3.499],[3.512,0.941],[1.017,11.85],[0,0]],"o":[[1.343,-2.909],[11.613,3.112],[3.557,0.953],[-1.693,8.101],[0,0],[-6.805,9.754],[-3.512,-0.941],[-13.06,-3.5],[0,0],[-7.957,-92.748]],"v":[[-35.138,-110.578],[-26.611,-113.981],[68.885,-88.393],[74.568,-81.183],[21.342,74.536],[2.931,100.923],[-30.453,111.435],[-40.496,108.744],[-64.152,82.949],[-66.902,50.891]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.976000019148,0.882000014361,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[75.109,115.184],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 7","np":4,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":240,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Drop Front","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256,256,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-20.664,21.31],[52.321,35.801],[289.368,183.81],[-225.526,-22.093],[1,-97.501]],"o":[[64,-66],[-352.77,-241.383],[-317.321,-201.567],[78.338,7.674],[-0.349,34.012]],"v":[[191,-189],[180.77,-93.617],[72.632,70.19],[55.526,158.593],[-110.5,257.501]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":52,"s":[0]},{"t":76,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":38,"s":[0]},{"t":60,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.149019592884,1,0.949942255955,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":3,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-12,-9],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"S1","np":4,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-20.664,21.31],[52.035,36.216],[243.247,167.482],[-225.526,-22.093],[-1,-41]],"o":[[64,-66],[-313.77,-218.383],[-309.632,-213.19],[78.338,7.674],[0.829,34.004]],"v":[[189,-200],[167.77,-111.617],[72.632,72.19],[26.526,159.093],[-112,238]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":52,"s":[0]},{"t":73,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.063],"y":[0.259]},"t":41,"s":[0]},{"t":60,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.254901960784,0.886043653301,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":36,"ix":5},"lc":3,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"S2","np":4,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-5.462,29.175],[-652,-377]],"o":[[79,-422],[24.501,14.167]],"v":[[-39,-26],[130,238]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":28,"s":[0]},{"t":40.36328125,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[0]},{"t":34.544921875,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.956862804936,0.258823529412,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[5]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":32,"s":[25]},{"t":41,"s":[0]}],"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":4,"cix":2,"bm":0,"ix":3,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-5.56,29.157],[-210,-353]],"o":[[78,-409],[14.47,24.323]],"v":[[-31,-24],[-91,246]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":34.545,"s":[0]},{"t":46.908203125,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":15.637,"s":[0]},{"t":34.181640625,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.992156922583,0.792156922583,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[5]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":35,"s":[25]},{"t":47,"s":[0]}],"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Dark1","np":4,"cix":2,"bm":0,"ix":4,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[3.648,29.457],[272,-158.001]],"o":[[-66,-533],[-24.473,14.216]],"v":[[60,-4],[1,268]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":38.408,"s":[0]},{"t":49.298828125,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":19.352,"s":[0]},{"t":35.9609375,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.956862804936,0.258823529412,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":19.758,"s":[5]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":35.881,"s":[25]},{"t":43.939453125,"s":[0]}],"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 2","np":4,"cix":2,"bm":0,"ix":5,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-0.904,29.668],[401,-12.5]],"o":[[21,-689],[-28.288,0.882]],"v":[[63,18],[-85,250.5]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":36.279,"s":[0]},{"t":50.208984375,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":18.863,"s":[0]},{"t":39.759765625,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.956862804936,0.258823529412,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":17.967,"s":[5]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":40.357,"s":[25]},{"t":52,"s":[0]}],"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 2","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Last","np":4,"cix":2,"bm":0,"ix":6,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[-4.173,29.388],[539,258]],"o":[[96,-676],[-25.528,-12.219]],"v":[[72,7],[-191,184]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":31.799,"s":[0]},{"t":42.146484375,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":18.863,"s":[0]},{"t":34.38671875,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.992156922583,0.792156922583,0,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":20.008,"s":[5]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":34.086,"s":[25]},{"t":42.146484375,"s":[0]}],"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Dark2","np":4,"cix":2,"bm":0,"ix":7,"mn":"ADBE Vector Group","hd":false}],"ip":7,"op":247,"st":7,"bm":0},{"ddd":0,"ind":2,"ty":0,"nm":"Cheers!","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256,256,0],"ix":2},"a":{"a":0,"k":[256,256,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"hasMask":true,"masksProperties":[{"inv":false,"mode":"a","pt":{"a":0,"k":{"i":[[133.101,0],[0,-133.101],[-133.101,0],[0,133.101]],"o":[[-133.101,0],[0,133.101],[133.101,0],[0,-133.101]],"v":[[258,21],[17,262],[258,503],[499,262]],"c":true},"ix":1},"o":{"a":0,"k":100,"ix":3},"x":{"a":0,"k":0,"ix":4},"nm":"Mask 1"}],"w":512,"h":512,"ip":0,"op":167,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Drop 2","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":60,"s":[73]},{"t":152,"s":[60]}],"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"s":true,"x":{"a":0,"k":256,"ix":3},"y":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":35,"s":[-147]},{"t":42,"s":[-27]}],"ix":4}},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.667,0.667,0.667],"y":[0.979,0.979,0.997]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":35,"s":[100,100,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0.072,0.072,0.01]},"t":60,"s":[197.12,197.12,100]},{"t":152,"s":[300,300,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[22.5,22.5],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":35,"s":[0,0],"to":[-8,0],"ti":[-1.333,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":66,"s":[-48,0],"to":[1.333,0],"ti":[3,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":102.002,"s":[8,0],"to":[-3,0],"ti":[12.333,0]},{"t":152,"s":[-66,0]}],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[1,0.956862804936,0.258823529412,1]},{"t":124,"s":[1,0.976470649242,0.882353007793,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-30.75,128.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Light","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[31,31],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":35,"s":[0,0],"to":[13.833,6.5],"ti":[-1.667,-10.5]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":66,"s":[83,39],"to":[1.667,10.5],"ti":[1.333,-8.333]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":102.002,"s":[10,63],"to":[-1.333,8.333],"ti":[-10.833,-4.333]},{"t":152,"s":[75,89]}],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":1,"k":[{"i":{"x":[0.833],"y":[0.833]},"o":{"x":[0.167],"y":[0.167]},"t":35,"s":[1,0.956862804936,0.258823529412,1]},{"t":124,"s":[1,0.976470649242,0.882353007793,1]}],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[19.5,102],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Dark","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":240,"st":0,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Drop","sr":1,"ks":{"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":61.576,"s":[73]},{"t":159.18359375,"s":[60]}],"ix":11},"r":{"a":0,"k":27,"ix":10},"p":{"s":true,"x":{"a":0,"k":256,"ix":3},"y":{"a":1,"k":[{"i":{"x":[0.319],"y":[1]},"o":{"x":[0.007],"y":[0.364]},"t":18,"s":[-85]},{"t":203,"s":[431]}],"ix":4}},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.398,0.398,0.667],"y":[1,1,1]},"o":{"x":[0.319,0.319,0.333],"y":[0,0,0]},"t":18,"s":[32,32,100]},{"t":203,"s":[100,100,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[22.5,22.5],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":18,"s":[0,0],"to":[-8,0],"ti":[-1.333,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":72.033,"s":[-48,0],"to":[1.333,0],"ti":[3,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":134.785,"s":[8,0],"to":[-3,0],"ti":[12.333,0]},{"t":203,"s":[-66,0]}],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.976470648074,0.882353001015,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-30.75,128.25],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Light","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[31,31],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":18,"s":[0,0],"to":[13.833,6.5],"ti":[-1.667,-10.5]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":72.033,"s":[83,39],"to":[1.667,10.5],"ti":[1.333,-8.333]},{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":134.785,"s":[10,63],"to":[-1.333,8.333],"ti":[-10.833,-4.333]},{"t":203,"s":[75,89]}],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.976470648074,0.882353001015,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[19.5,102],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Dark","np":3,"cix":2,"bm":0,"ix":2,"mn":"ADBE Vector Group","hd":false}],"ip":11,"op":291,"st":51,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Back","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[256,260.999,0],"ix":2},"a":{"a":0,"k":[245.25,245.251,0],"ix":1},"s":{"a":0,"k":[97,97,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[135.31,0],[0,-135.31],[-56.53,-44.88],[0,0],[-48.43,0],[-38.011,24.249],[0,0],[0,77.786]],"o":[[-135.31,0],[0,77.787],[0,0],[38.011,24.25],[48.43,0],[0,0],[56.53,-44.881],[0,-135.31]],"v":[[0,-245.001],[-245,-0.001],[-152.212,191.977],[-131.586,206.693],[0,245.001],[131.586,206.695],[152.212,191.979],[245,0.001]],"c":true},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"fl","c":{"a":0,"k":[1,0.255000005984,0.33300000359,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"st","c":{"a":0,"k":[1,0.976470648074,0.882353001015,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":20,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[245.25,245.251],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Group 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":240,"st":0,"bm":0}],"markers":[]}
--------------------------------------------------------------------------------
/app/src/main/java/com/gk/emon/easyLoadingDemo/MainActivity.kt:
--------------------------------------------------------------------------------
1 | package com.gk.emon.easyLoadingDemo
2 |
3 | import android.content.Intent
4 | import android.graphics.PorterDuff
5 | import android.graphics.PorterDuffColorFilter
6 | import android.os.Bundle
7 | import android.os.Handler
8 | import android.os.Looper
9 | import android.view.View
10 | import android.widget.Button
11 | import android.widget.CheckBox
12 | import android.widget.EditText
13 | import androidx.annotation.ColorRes
14 | import androidx.appcompat.app.AppCompatActivity
15 | import androidx.core.content.ContextCompat.getColor
16 | import com.gk.emon.lovelyLoading.LoadingPopup
17 | import com.gk.emon.lovelyLoading.LoadingPopup.Companion.getInstance
18 | import petrov.kristiyan.colorpicker.ColorPicker
19 | import petrov.kristiyan.colorpicker.ColorPicker.OnChooseColorListener
20 |
21 | class MainActivity : AppCompatActivity() {
22 | private lateinit var cbDelay: CheckBox
23 | private lateinit var cbBg: CheckBox
24 | private lateinit var cbOpacity: CheckBox
25 | private lateinit var etDelay: EditText
26 | private lateinit var etOpacity: EditText
27 | private lateinit var btnDefaultShow: View
28 | private lateinit var btnCustomShow: View
29 | private lateinit var btnColor: Button
30 | private lateinit var llOpacity: View
31 | private lateinit var llDelay: View
32 |
33 | @ColorRes
34 | private var bgColorSelected = android.R.color.transparent
35 | override fun onCreate(savedInstanceState: Bundle?) {
36 | super.onCreate(savedInstanceState)
37 | setContentView(R.layout.activity_main)
38 | initView()
39 |
40 | getInstance(this)
41 | .customLoading()
42 | .setCustomViewID(R.layout.layout_my_custom_loading, android.R.color.holo_red_dark)
43 | .noIntentionalDelay()
44 | .setBackgroundOpacity(70)
45 | .build()
46 |
47 |
48 | LoadingPopup.showLoadingPopUp()
49 |
50 | Handler(Looper.getMainLooper()).postDelayed({
51 | startActivity(Intent(this,SecondActivity::class.java))
52 | }, 2000)
53 |
54 |
55 | }
56 |
57 | private fun doConfigureAndShowDefaultLovelyLoading() {
58 |
59 | if (bgColorSelected == android.R.color.transparent) {
60 | if (llOpacity.visibility == View.VISIBLE) {
61 | etOpacity.text.toString().toIntOrNull()?.let {
62 | /**When only opacity is set*/
63 | getInstance(this)
64 | .defaultLovelyLoading()
65 | .setBackgroundColor(android.R.color.holo_red_dark)
66 | .setBackgroundOpacity(it)
67 | .build()
68 | }
69 | } else {
70 | /**When none of opacity and background color is set*/
71 | getInstance(this)
72 | .defaultLovelyLoading()
73 | .build()
74 | }
75 |
76 | } else {
77 | if (llOpacity.visibility == View.VISIBLE) {
78 |
79 | etOpacity.text.toString().toIntOrNull()?.let {
80 | /**When both opacity and background color is set*/
81 | getInstance(this)
82 | .defaultLovelyLoading()
83 | .setBackgroundColor(bgColorSelected)
84 | .setBackgroundOpacity(it)
85 | .build()
86 | }
87 | } else {
88 | /**When only background color is set*/
89 | getInstance(this)
90 | .defaultLovelyLoading()
91 | .setBackgroundColor(bgColorSelected)
92 | .build()
93 | }
94 | }
95 |
96 |
97 | LoadingPopup.showLoadingPopUp()
98 |
99 | Handler(Looper.getMainLooper()).postDelayed({
100 | LoadingPopup.hideLoadingPopUp()
101 | }, DELAY)
102 |
103 |
104 | }
105 |
106 | private fun doConfigureAndShowCustomLovelyLoading() {
107 |
108 | val delayDurationStep: LoadingPopup.Companion.DelayDurationStep?
109 | var finalStep: LoadingPopup.FinalStep? = null
110 |
111 |
112 | val delayStep: LoadingPopup.Companion.DelayStep? = if (bgColorSelected != android.R.color.transparent)
113 | getInstance(this)
114 | /**If bg color is set*/
115 | .customLoading()
116 | .setCustomViewID(R.layout.layout_my_custom_loading, bgColorSelected)
117 | else getInstance(this)
118 | /**If bg color is not set*/
119 | .customLoading()
120 | .setCustomViewID(R.layout.layout_my_custom_loading)
121 |
122 | if (llDelay.visibility == View.VISIBLE) {
123 | delayDurationStep = delayStep?.doIntentionalDelay()
124 | etDelay.text.toString().toLongOrNull()?.let {
125 | finalStep = delayDurationStep?.setDelayDurationInMillSec(it)
126 | }
127 | } else {
128 | finalStep = delayStep?.noIntentionalDelay()
129 | }
130 |
131 | if (llOpacity.visibility == View.VISIBLE) {
132 | etOpacity.text.toString().toIntOrNull()?.let {
133 | finalStep?.setBackgroundOpacity(it)
134 | }
135 | }
136 |
137 | if (btnColor.visibility == View.VISIBLE) {
138 | finalStep?.setBackgroundColor(bgColorSelected)
139 | }
140 |
141 | finalStep?.build()
142 |
143 |
144 | LoadingPopup.showLoadingPopUp()
145 |
146 | Handler(Looper.getMainLooper()).postDelayed({
147 | LoadingPopup.hideLoadingPopUp()
148 | }, DELAY)
149 | }
150 |
151 | private fun initView() {
152 | cbBg = findViewById(R.id.cb_bg)
153 | cbDelay = findViewById(R.id.cb_delay)
154 | cbOpacity = findViewById(R.id.cb_opacity)
155 | etDelay = findViewById(R.id.et_delay)
156 | etOpacity = findViewById(R.id.et_opacity)
157 | btnDefaultShow = findViewById(R.id.btn_default_show)
158 | btnCustomShow = findViewById(R.id.btn_custom_show)
159 | btnColor = findViewById(R.id.bt_color_select)
160 | llDelay = findViewById(R.id.ll_delay)
161 | llOpacity = findViewById(R.id.ll_opacity)
162 |
163 | btnCustomShow.setOnClickListener { doConfigureAndShowCustomLovelyLoading() }
164 | btnDefaultShow.setOnClickListener { doConfigureAndShowDefaultLovelyLoading() }
165 | cbBg.setOnCheckedChangeListener { _, isChecked ->
166 | if (isChecked) btnColor.visibility =
167 | View.VISIBLE else {
168 | btnColor.visibility = View.GONE
169 | bgColorSelected = android.R.color.transparent
170 | }
171 | }
172 | cbDelay.setOnCheckedChangeListener { _, isChecked ->
173 | if (isChecked)
174 | llDelay.visibility = View.VISIBLE
175 | else {
176 | llDelay.visibility = View.GONE
177 | }
178 | }
179 | cbOpacity.setOnCheckedChangeListener { _, isChecked ->
180 | if (isChecked)
181 | llOpacity.visibility = View.VISIBLE
182 | else llOpacity.visibility = View.GONE
183 | }
184 | btnColor.setOnClickListener {
185 | val colorPicker = ColorPicker(this@MainActivity)
186 | colorPicker
187 | .setColors(R.array.colors)
188 | .setOnChooseColorListener(object : OnChooseColorListener {
189 | override fun onChooseColor(position: Int, color: Int) {
190 | val colors = intArrayOf(R.color.colorPrimary, R.color.colorPrimaryDark,
191 | R.color.colorAccent, R.color.colorGreen, R.color.colorRed,
192 | R.color.colorYellow, R.color.colorOrange, R.color.colorBlue,
193 | R.color.colorBlack)
194 | bgColorSelected = colors[position]
195 | btnColor.background.mutate().colorFilter = PorterDuffColorFilter(
196 | getColor(this@MainActivity, colors[position]), PorterDuff.Mode.SRC)
197 | }
198 |
199 | override fun onCancel() {}
200 | }).show()
201 | }
202 | }
203 |
204 | companion object {
205 | private const val DELAY: Long = 1000
206 | }
207 | }
--------------------------------------------------------------------------------
/app/src/main/java/com/gk/emon/easyLoadingDemo/SecondActivity.kt:
--------------------------------------------------------------------------------
1 | package com.gk.emon.easyLoadingDemo
2 |
3 | import android.os.Bundle
4 | import android.os.Handler
5 | import android.os.Looper
6 | import androidx.appcompat.app.AppCompatActivity
7 | import com.gk.emon.lovelyLoading.LoadingPopup
8 |
9 | class SecondActivity : AppCompatActivity() {
10 | override fun onCreate(savedInstanceState: Bundle?) {
11 | super.onCreate(savedInstanceState)
12 | setContentView(R.layout.activity_second)
13 |
14 | Handler(Looper.getMainLooper()).postDelayed({
15 | LoadingPopup.hideLoadingPopUp()
16 | }, 2000)
17 |
18 | }
19 | }
--------------------------------------------------------------------------------
/app/src/main/res/drawable-v24/ic_launcher_foreground.xml:
--------------------------------------------------------------------------------
1 |
7 |
12 |
13 |
19 |
22 |
25 |
26 |
27 |
28 |
34 |
35 |
--------------------------------------------------------------------------------
/app/src/main/res/drawable/ic_launcher_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
10 |
15 |
20 |
25 |
30 |
35 |
40 |
45 |
50 |
55 |
60 |
65 |
70 |
75 |
80 |
85 |
90 |
95 |
100 |
105 |
110 |
115 |
120 |
125 |
130 |
135 |
140 |
145 |
150 |
155 |
160 |
165 |
170 |
171 |
--------------------------------------------------------------------------------
/app/src/main/res/layout-v21/layout_my_custom_loading.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
17 |
18 |
30 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_main.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
13 |
19 |
20 |
26 |
27 |
45 |
46 |
53 |
54 |
60 |
61 |
69 |
70 |
74 |
75 |
81 |
82 |
83 |
86 |
87 |
91 |
92 |
98 |
99 |
105 |
106 |
107 |
114 |
115 |
121 |
122 |
130 |
131 |
132 |
133 |
136 |
137 |
141 |
142 |
143 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/activity_second.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
13 |
14 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/content_second.xml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/include_btn.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/app/src/main/res/layout/layout_my_custom_loading.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
19 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-hdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-mdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
--------------------------------------------------------------------------------
/app/src/main/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #008577
4 | #00574B
5 | #D81B60
6 | #89FF00
7 | #F44336
8 | #FFEB3B
9 | #FF9800
10 | #DC2196F3
11 | #000000
12 |
13 |
14 | - @color/colorPrimary
15 | - @color/colorPrimaryDark
16 | - @color/colorAccent
17 | - @color/colorGreen
18 | - @color/colorRed
19 | - @color/colorYellow
20 | - @color/colorOrange
21 | - @color/colorBlue
22 | - @color/colorBlack
23 |
24 |
25 |
--------------------------------------------------------------------------------
/app/src/main/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 | 16dp
3 |
4 |
--------------------------------------------------------------------------------
/app/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Easy Android Loading
3 | SecondActivity
4 | Want to delay intentionally sometimes ?
5 | Do configure and show the custom loading using user defined layout resource
6 | ,background color,opacity level and with intentional time delay.Will be close after a
7 | 4 second fake and simulated latency
8 | Do configure and show the default Easy Android Loading. Will be close after a
9 | 4 second fake and simulated latency
10 | Want to set background color?
11 | Select background color
12 | Set opacity level must between 0-100.(Default is 30)
13 | Want to set opacity level ?
14 |
15 |
--------------------------------------------------------------------------------
/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
10 |
11 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/app/src/test/java/com/gk/emon/easyLoadingDemo/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.gk.emon.easyLoadingDemo;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/build.gradle:
--------------------------------------------------------------------------------
1 | // Top-level build file where you can add configuration options common to all sub-projects/modules.
2 |
3 | buildscript {
4 | ext.kotlin_version = '1.4.31'
5 | repositories {
6 | google()
7 | jcenter()
8 |
9 | }
10 | dependencies {
11 | classpath 'com.android.tools.build:gradle:4.1.3'
12 | classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
13 |
14 | // NOTE: Do not place your application dependencies here; they belong
15 | // in the individual module build.gradle files
16 | }
17 | }
18 |
19 | allprojects {
20 | repositories {
21 | google()
22 | jcenter()
23 | maven {
24 | url "https://jitpack.io"
25 | }
26 | }
27 | }
28 |
29 | task clean(type: Delete) {
30 | delete rootProject.buildDir
31 | }
32 |
--------------------------------------------------------------------------------
/easy-loading.webp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/easy-loading.webp
--------------------------------------------------------------------------------
/easy-loading/.gitignore:
--------------------------------------------------------------------------------
1 | /build
2 |
--------------------------------------------------------------------------------
/easy-loading/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: 'com.android.library'
2 | apply plugin: 'kotlin-android'
3 |
4 | android {
5 | compileSdkVersion 30
6 |
7 |
8 | defaultConfig {
9 | minSdkVersion 16
10 | targetSdkVersion 30
11 | versionCode 1
12 | versionName "1.0"
13 |
14 | testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15 | consumerProguardFiles 'consumer-rules.pro'
16 | }
17 |
18 | buildTypes {
19 | release {
20 | minifyEnabled false
21 | proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
22 | }
23 | }
24 |
25 |
26 | }
27 |
28 | dependencies {
29 | implementation fileTree(dir: 'libs', include: ['*.jar'])
30 | implementation 'com.airbnb.android:lottie:2.6.0'
31 | implementation 'androidx.appcompat:appcompat:1.2.0'
32 | testImplementation 'junit:junit:4.13.2'
33 | androidTestImplementation 'androidx.test.ext:junit:1.1.2'
34 | androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
35 | implementation "androidx.core:core-ktx:1.3.2"
36 | implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
37 | }
38 |
39 | repositories {
40 | mavenCentral()
41 | }
42 |
--------------------------------------------------------------------------------
/easy-loading/consumer-rules.pro:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/easy-loading/consumer-rules.pro
--------------------------------------------------------------------------------
/easy-loading/proguard-rules.pro:
--------------------------------------------------------------------------------
1 | # Add project specific ProGuard rules here.
2 | # You can control the set of applied configuration files using the
3 | # proguardFiles setting in build.gradle.
4 | #
5 | # For more details, see
6 | # http://developer.android.com/guide/developing/tools/proguard.html
7 |
8 | # If your project uses WebView with JS, uncomment the following
9 | # and specify the fully qualified class name to the JavaScript interface
10 | # class:
11 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12 | # public *;
13 | #}
14 |
15 | # Uncomment this to preserve the line number information for
16 | # debugging stack traces.
17 | #-keepattributes SourceFile,LineNumberTable
18 |
19 | # If you keep the line number information, uncomment this to
20 | # hide the original source file name.
21 | #-renamesourcefileattribute SourceFile
22 |
--------------------------------------------------------------------------------
/easy-loading/src/androidTest/java/com/gk/emon/lovelyloading/ExampleInstrumentedTest.java:
--------------------------------------------------------------------------------
1 | package com.gk.emon.lovelyloading;
2 |
3 | import android.content.Context;
4 |
5 | import androidx.test.platform.app.InstrumentationRegistry;
6 | import androidx.test.ext.junit.runners.AndroidJUnit4;
7 |
8 | import org.junit.Test;
9 | import org.junit.runner.RunWith;
10 |
11 | import static org.junit.Assert.*;
12 |
13 | /**
14 | * Instrumented test, which will execute on an Android device.
15 | *
16 | * @see Testing documentation
17 | */
18 | @RunWith(AndroidJUnit4.class)
19 | public class ExampleInstrumentedTest {
20 | @Test
21 | public void useAppContext() {
22 | // Context of the app under test.
23 | Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
24 |
25 | assertEquals("com.gk.emon.lovelyloading.test", appContext.getPackageName());
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/easy-loading/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/easy-loading/src/main/assets/Loading.json:
--------------------------------------------------------------------------------
1 | {"v":"5.4.2","fr":60,"ip":0,"op":130,"w":500,"h":500,"nm":"Loading 11","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[247.59,232.023,0],"ix":2},"a":{"a":0,"k":[-7.809,-34.375,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[129.203,129.203],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.647],"y":[1]},"o":{"x":[0.369],"y":[0]},"n":["0p647_1_0p369_0"],"t":60,"s":[100],"e":[0]},{"t":98}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.722],"y":[1]},"o":{"x":[0.233],"y":[0]},"n":["0p722_1_0p233_0"],"t":98,"s":[100],"e":[0]},{"t":128}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.463,0.737,0.8,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":17,"ix":5},"lc":2,"lj":2,"d":[{"n":"d","nm":"dash","v":{"a":0,"k":0,"ix":1}},{"n":"o","nm":"offset","v":{"a":0,"k":0,"ix":7}}],"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-7.809,-34.375],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[45,45],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180,"st":0,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[247.59,232.023,0],"ix":2},"a":{"a":0,"k":[-7.809,-34.375,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[129.203,129.203],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.703],"y":[1]},"o":{"x":[0.259],"y":[0]},"n":["0p703_1_0p259_0"],"t":20,"s":[100],"e":[0]},{"t":60}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.733],"y":[1]},"o":{"x":[0.382],"y":[0]},"n":["0p733_1_0p382_0"],"t":60,"s":[100],"e":[0]},{"t":95}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.114,0.18,0.251,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":11,"ix":5},"lc":2,"lj":2,"d":[{"n":"d","nm":"dash","v":{"a":0,"k":0,"ix":1}},{"n":"o","nm":"offset","v":{"a":0,"k":0,"ix":7}}],"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-7.809,-34.375],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[73,73],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[247.59,232.023,0],"ix":2},"a":{"a":0,"k":[-7.809,-34.375,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[129.203,129.203],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.716],"y":[1]},"o":{"x":[0.259],"y":[0]},"n":["0p716_1_0p259_0"],"t":0,"s":[100],"e":[0]},{"t":40}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.731],"y":[1]},"o":{"x":[0.23],"y":[0]},"n":["0p731_1_0p23_0"],"t":40,"s":[100],"e":[0]},{"t":77}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false},{"ty":"st","c":{"a":0,"k":[0.463,0.737,0.8,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":8,"ix":5},"lc":2,"lj":2,"d":[{"n":"d","nm":"dash","v":{"a":0,"k":0,"ix":1}},{"n":"o","nm":"offset","v":{"a":0,"k":0,"ix":7}}],"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-7.809,-34.375],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":4,"cix":2,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":180,"st":0,"bm":0}],"markers":[]}
--------------------------------------------------------------------------------
/easy-loading/src/main/java/com/gk/emon/lovelyLoading/ColorTransparentUtils.kt:
--------------------------------------------------------------------------------
1 | package com.gk.emon.lovelyLoading
2 |
3 | import android.R
4 | import android.util.Log
5 | import java.util.*
6 | import kotlin.math.roundToInt
7 |
8 | /**
9 | * Created by Hemant chand on 05/07/17.
10 | */
11 | object ColorTransparentUtils {
12 | // This default color int
13 | private const val defaultColorID = R.color.black
14 | private const val defaultColor = "000000"
15 | private const val TAG = "ColorTransparentUtils"
16 |
17 | /**
18 | * This method convert numver into hexa number or we can say transparent code
19 | *
20 | * @param trans number of transparency you want
21 | * @return it return hex decimal number or transparency code
22 | */
23 | private fun convert(trans: Int): String {
24 | val hexString = Integer.toHexString((255 * trans / 100.toFloat()).roundToInt())
25 | return (if (hexString.length < 2) "0" else "") + hexString
26 | }
27 |
28 | fun transparentColor(colorCode: Int, trans: Int): String {
29 | return convertIntoColor(colorCode, trans)
30 | }
31 |
32 | /**
33 | * Convert color code into transparent color code
34 | *
35 | * @param colorCode color code
36 | * @param transCode transparent number
37 | * @return transparent color code
38 | */
39 | private fun convertIntoColor(colorCode: Int, transCode: Int): String {
40 | // convert color code into hex string and remove starting 2 digit
41 | var color = defaultColor
42 | try {
43 | color = Integer.toHexString(colorCode).toUpperCase(Locale.US).substring(2)
44 | } catch (ignored: Exception) {
45 | }
46 | return if (!color.isEmpty() && transCode < 100) {
47 | if (color.trim { it <= ' ' }.length == 6) {
48 | "#" + convert(transCode) + color
49 | } else {
50 | Log.d(TAG, "Color is already with transparency")
51 | convert(transCode) + color
52 | }
53 | } else "#" + Integer.toHexString(defaultColorID).toUpperCase(Locale.US).substring(2)
54 | // if color is empty or any other problem occur then we return default color;
55 | }
56 | }
--------------------------------------------------------------------------------
/easy-loading/src/main/java/com/gk/emon/lovelyLoading/LoadingPopup.kt:
--------------------------------------------------------------------------------
1 | package com.gk.emon.lovelyLoading
2 |
3 | import android.app.Activity
4 | import android.app.Application.ActivityLifecycleCallbacks
5 | import android.app.Dialog
6 | import android.content.Context
7 | import android.graphics.Color
8 | import android.graphics.drawable.ColorDrawable
9 | import android.os.Bundle
10 | import android.os.Handler
11 | import android.os.Looper
12 | import android.util.Log
13 | import android.view.View
14 | import android.view.WindowManager
15 | import androidx.annotation.ColorRes
16 | import androidx.annotation.IntRange
17 | import androidx.annotation.LayoutRes
18 | import androidx.core.content.ContextCompat
19 | import com.airbnb.lottie.LottieAnimationView
20 |
21 | class LoadingPopup(context: Context) : Dialog(context) {
22 | private var intentionalDelayInMillSec: Long = 0
23 |
24 | @ColorRes
25 | var backgroundColor: Int = android.R.color.transparent
26 |
27 | @IntRange(from = 0, to = 100)
28 | private var opacity = DEFAULT_OPACITY
29 | private var isQueued = false
30 | private lateinit var vContent: View
31 |
32 | @LayoutRes
33 | private var customLayoutID = 0
34 | fun setIntentionalDelayInMillSec(millSec: Long) {
35 | intentionalDelayInMillSec = millSec
36 | }
37 |
38 | fun setCustomViewID(customLayoutID: Int, @ColorRes backgroundColor: Int) {
39 | this.customLayoutID = customLayoutID
40 | this.backgroundColor = backgroundColor
41 | }
42 |
43 | fun setOpacity(opacity: Int) {
44 | this.opacity = opacity
45 | }
46 |
47 | fun setCancelable() {
48 | setCancelable(true)
49 | }
50 |
51 | public override fun onCreate(savedInstanceState: Bundle?) {
52 | super.onCreate(savedInstanceState)
53 | configureResources()
54 | }
55 |
56 | private fun setupBackgroundColorWithOpacity() {
57 | /**defaultBackgroundColor not black means user set a default color as watermark
58 | * background.If default color is black that means a default color is not set.
59 | * So then it should be get the background color from the inflated view from layout
60 | * resource id which will be shown as the water mark. If all of these approach get any exception
61 | * then black color with 50% opacity (default opacity) will be set*/
62 | if (backgroundColor == android.R.color.transparent)
63 | vContent.setBackgroundColor(Color.parseColor(ColorTransparentUtils
64 | .transparentColor(getBackgroundColor(vContent), opacity)))
65 | else {
66 | vContent.setBackgroundColor(Color.parseColor(ColorTransparentUtils
67 | .transparentColor(ContextCompat.getColor(context, backgroundColor), opacity)))
68 | }
69 | }
70 |
71 | private fun configureResources() {
72 | /** customLayoutID==0 means no custom layout is set. So it should show default layout. */
73 | if (customLayoutID == 0) {
74 | vContent = layoutInflater.inflate(R.layout.dialog_lottie_loading_popup, null)
75 | setupBackgroundColorWithOpacity();
76 | setContentView(vContent)
77 | val lottieAnimationView: LottieAnimationView = findViewById(R.id.v_lottie)
78 | lottieAnimationView.setAnimation("Loading.json")
79 | } else {
80 | vContent = layoutInflater.inflate(customLayoutID, null)
81 | setupBackgroundColorWithOpacity()
82 | setContentView(vContent)
83 | }
84 | window?.let {
85 | it.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
86 | it.setLayout(WindowManager.LayoutParams.MATCH_PARENT, WindowManager.LayoutParams.MATCH_PARENT);
87 | it.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND)
88 | }
89 |
90 |
91 | }
92 |
93 | private fun getBackgroundColor(view: View): Int {
94 | val drawable = view.background
95 | if (drawable is ColorDrawable) {
96 | return drawable.color
97 | }
98 | return Color.TRANSPARENT
99 | }
100 |
101 | override fun hide() {
102 | if (intentionalDelayInMillSec != 0L) {
103 | Handler(Looper.getMainLooper()).postDelayed({
104 | super.dismiss()
105 | }, intentionalDelayInMillSec)
106 | } else {
107 | super.dismiss()
108 | }
109 |
110 | }
111 |
112 | override fun show() {
113 | if (!isShowing) {
114 | super.show()
115 | }
116 | }
117 |
118 |
119 | interface FinalStep {
120 | fun cancelable(): FinalStep
121 | fun setBackgroundOpacity(@IntRange(from = 0, to = 100) opacity: Int): FinalStep
122 | fun setBackgroundColor(@ColorRes colorId: Int): FinalStep
123 | fun build()
124 | }
125 |
126 | class LoadingBuilder(private val activity: Activity) : FinalStep, TypeStep, DelayDurationStep, DelayStep, CustomLayoutStep {
127 | private var isAutoCancelable = false
128 | private var intentionalDelayInMillSec: Long = 0
129 | var dialog: LoadingPopup? = null
130 | @Synchronized
131 | fun getDialog(context: Context): LoadingPopup? {
132 | if (dialog == null) {
133 | dialog = LoadingPopup(context)
134 | }
135 | return dialog
136 | }
137 |
138 | @LayoutRes
139 | private var customLayoutID = 0
140 | private var opacity = DEFAULT_OPACITY
141 |
142 | @ColorRes
143 | private var backgroundColor = android.R.color.transparent
144 | override fun setCustomViewID(customLayoutID: Int): DelayStep {
145 | this.customLayoutID = customLayoutID
146 | return this
147 | }
148 |
149 | override fun setCustomViewID(customLayoutID: Int, @ColorRes backgroundColor: Int): DelayStep {
150 | this.customLayoutID = customLayoutID
151 | this.backgroundColor = backgroundColor
152 | return this
153 | }
154 |
155 | override fun cancelable(): FinalStep {
156 | isAutoCancelable = true
157 | return this
158 | }
159 |
160 | override fun setBackgroundOpacity(opacity: Int): FinalStep {
161 | this.opacity = opacity
162 | return this
163 | }
164 |
165 | override fun setBackgroundColor(colorId: Int): FinalStep {
166 | this.backgroundColor = colorId;
167 | return this
168 | }
169 |
170 | override fun build() {
171 | getDialog(activity)?.apply {
172 | setIntentionalDelayInMillSec(intentionalDelayInMillSec)
173 | if (isAutoCancelable) setCancelable()
174 | setCustomViewID(customLayoutID, backgroundColor)
175 | setOpacity(opacity)
176 | configureResources()
177 | }
178 | }
179 |
180 | override fun defaultLovelyLoading(): FinalStep {
181 | return this
182 | }
183 |
184 | override fun customLoading(): CustomLayoutStep {
185 | return this
186 | }
187 |
188 | override fun doIntentionalDelay(): DelayDurationStep {
189 | return this
190 | }
191 |
192 | override fun noIntentionalDelay(): FinalStep {
193 | return this
194 | }
195 |
196 | override fun setDelayDurationInMillSec(millSec: Long): FinalStep {
197 | this.intentionalDelayInMillSec = millSec
198 | return this
199 | }
200 |
201 | private fun registerActivityChangeListener(activity: Activity?) {
202 | if (activity != null && activity.application != null) {
203 | activity.application
204 | .registerActivityLifecycleCallbacks(object : ActivityLifecycleCallbacks {
205 | override fun onActivityCreated(activity: Activity, bundle: Bundle?) {
206 | dialog?.hide()
207 | dialog = null
208 | dialog = getDialog(activity)
209 | }
210 | override fun onActivityStarted(activity: Activity) {}
211 | override fun onActivityResumed(activity: Activity) {
212 | dialog = getDialog(activity)
213 | build()
214 | }
215 | override fun onActivityPaused(activity: Activity) {}
216 | override fun onActivityStopped(activity: Activity) {}
217 | override fun onActivitySaveInstanceState(activity: Activity, bundle: Bundle) {}
218 | override fun onActivityDestroyed(activity: Activity) {}
219 | })
220 | }
221 | }
222 |
223 | init {
224 | registerActivityChangeListener(activity)
225 | }
226 | }
227 |
228 | companion object {
229 | private lateinit var loadingBuilder: LoadingBuilder
230 |
231 | interface TypeStep {
232 | fun defaultLovelyLoading(): FinalStep
233 | fun customLoading(): CustomLayoutStep
234 | }
235 |
236 | interface CustomLayoutStep {
237 | fun setCustomViewID(@LayoutRes customLayoutID: Int): DelayStep
238 | fun setCustomViewID(@LayoutRes customLayoutID: Int, @ColorRes backgroundColor: Int): DelayStep
239 | }
240 |
241 | interface DelayStep {
242 | fun doIntentionalDelay(): DelayDurationStep
243 | fun noIntentionalDelay(): FinalStep
244 | }
245 |
246 | interface DelayDurationStep {
247 | fun setDelayDurationInMillSec(millSec: Long): FinalStep
248 | }
249 |
250 | @JvmStatic
251 | fun showLoadingPopUp() = try {
252 | loadingBuilder.dialog?.show()
253 | } catch (e: Exception) {
254 | Log.e(TAG, "Error in loading popup: " + e.message)
255 | }
256 |
257 | @JvmStatic
258 | fun hideLoadingPopUp() {
259 | loadingBuilder.dialog?.hide()
260 | }
261 |
262 | @JvmStatic
263 | @Synchronized
264 | fun getInstance(activity: Activity): TypeStep {
265 | return LoadingBuilder(activity).also {
266 | loadingBuilder = it
267 | }
268 | }
269 |
270 | private val TAG: String = LoadingPopup::class.java.simpleName
271 | private const val DEFAULT_OPACITY = 30
272 | }
273 | }
--------------------------------------------------------------------------------
/easy-loading/src/main/res/layout/dialog_lottie_loading_popup.xml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
16 |
17 |
--------------------------------------------------------------------------------
/easy-loading/src/main/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 | Easy Android Loading
3 |
4 |
--------------------------------------------------------------------------------
/easy-loading/src/test/java/com/gk/emon/lovelyloading/ExampleUnitTest.java:
--------------------------------------------------------------------------------
1 | package com.gk.emon.lovelyloading;
2 |
3 | import org.junit.Test;
4 |
5 | import static org.junit.Assert.*;
6 |
7 | /**
8 | * Example local unit test, which will execute on the development machine (host).
9 | *
10 | * @see Testing documentation
11 | */
12 | public class ExampleUnitTest {
13 | @Test
14 | public void addition_isCorrect() {
15 | assertEquals(4, 2 + 2);
16 | }
17 | }
--------------------------------------------------------------------------------
/gradle.properties:
--------------------------------------------------------------------------------
1 | # Project-wide Gradle settings.
2 | # IDE (e.g. Android Studio) users:
3 | # Gradle settings configured through the IDE *will override*
4 | # any settings specified in this file.
5 | # For more details on how to configure your build environment visit
6 | # http://www.gradle.org/docs/current/userguide/build_environment.html
7 | # Specifies the JVM arguments used for the daemon process.
8 | # The setting is particularly useful for tweaking memory settings.
9 | org.gradle.jvmargs=-Xmx1536m
10 | # When configured, Gradle will run in incubating parallel mode.
11 | # This option should only be used with decoupled projects. More details, visit
12 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13 | # org.gradle.parallel=true
14 | # AndroidX package structure to make it clearer which packages are bundled with the
15 | # Android operating system, and which are packaged with your app's APK
16 | # https://developer.android.com/topic/libraries/support-library/androidx-rn
17 | android.useAndroidX=true
18 | # Automatically convert third-party libraries to use AndroidX
19 | android.enableJetifier=true
20 |
21 |
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Gkemon/Easy-Android-Loading/726b0d55ec1571b5a70c696fd6507eb20576d040/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Apr 30 15:59:45 BDT 2021
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
7 |
--------------------------------------------------------------------------------
/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Attempt to set APP_HOME
10 | # Resolve links: $0 may be a link
11 | PRG="$0"
12 | # Need this for relative symlinks.
13 | while [ -h "$PRG" ] ; do
14 | ls=`ls -ld "$PRG"`
15 | link=`expr "$ls" : '.*-> \(.*\)$'`
16 | if expr "$link" : '/.*' > /dev/null; then
17 | PRG="$link"
18 | else
19 | PRG=`dirname "$PRG"`"/$link"
20 | fi
21 | done
22 | SAVED="`pwd`"
23 | cd "`dirname \"$PRG\"`/" >/dev/null
24 | APP_HOME="`pwd -P`"
25 | cd "$SAVED" >/dev/null
26 |
27 | APP_NAME="Gradle"
28 | APP_BASE_NAME=`basename "$0"`
29 |
30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31 | DEFAULT_JVM_OPTS=""
32 |
33 | # Use the maximum available, or set MAX_FD != -1 to use that value.
34 | MAX_FD="maximum"
35 |
36 | warn () {
37 | echo "$*"
38 | }
39 |
40 | die () {
41 | echo
42 | echo "$*"
43 | echo
44 | exit 1
45 | }
46 |
47 | # OS specific support (must be 'true' or 'false').
48 | cygwin=false
49 | msys=false
50 | darwin=false
51 | nonstop=false
52 | case "`uname`" in
53 | CYGWIN* )
54 | cygwin=true
55 | ;;
56 | Darwin* )
57 | darwin=true
58 | ;;
59 | MINGW* )
60 | msys=true
61 | ;;
62 | NONSTOP* )
63 | nonstop=true
64 | ;;
65 | esac
66 |
67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
68 |
69 | # Determine the Java command to use to start the JVM.
70 | if [ -n "$JAVA_HOME" ] ; then
71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
72 | # IBM's JDK on AIX uses strange locations for the executables
73 | JAVACMD="$JAVA_HOME/jre/sh/java"
74 | else
75 | JAVACMD="$JAVA_HOME/bin/java"
76 | fi
77 | if [ ! -x "$JAVACMD" ] ; then
78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
79 |
80 | Please set the JAVA_HOME variable in your environment to match the
81 | location of your Java installation."
82 | fi
83 | else
84 | JAVACMD="java"
85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
86 |
87 | Please set the JAVA_HOME variable in your environment to match the
88 | location of your Java installation."
89 | fi
90 |
91 | # Increase the maximum file descriptors if we can.
92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
93 | MAX_FD_LIMIT=`ulimit -H -n`
94 | if [ $? -eq 0 ] ; then
95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
96 | MAX_FD="$MAX_FD_LIMIT"
97 | fi
98 | ulimit -n $MAX_FD
99 | if [ $? -ne 0 ] ; then
100 | warn "Could not set maximum file descriptor limit: $MAX_FD"
101 | fi
102 | else
103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
104 | fi
105 | fi
106 |
107 | # For Darwin, add options to specify how the application appears in the dock
108 | if $darwin; then
109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110 | fi
111 |
112 | # For Cygwin, switch paths to Windows format before running java
113 | if $cygwin ; then
114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116 | JAVACMD=`cygpath --unix "$JAVACMD"`
117 |
118 | # We build the pattern for arguments to be converted via cygpath
119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
120 | SEP=""
121 | for dir in $ROOTDIRSRAW ; do
122 | ROOTDIRS="$ROOTDIRS$SEP$dir"
123 | SEP="|"
124 | done
125 | OURCYGPATTERN="(^($ROOTDIRS))"
126 | # Add a user-defined pattern to the cygpath arguments
127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
129 | fi
130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
131 | i=0
132 | for arg in "$@" ; do
133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
135 |
136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
138 | else
139 | eval `echo args$i`="\"$arg\""
140 | fi
141 | i=$((i+1))
142 | done
143 | case $i in
144 | (0) set -- ;;
145 | (1) set -- "$args0" ;;
146 | (2) set -- "$args0" "$args1" ;;
147 | (3) set -- "$args0" "$args1" "$args2" ;;
148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
154 | esac
155 | fi
156 |
157 | # Escape application args
158 | save () {
159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
160 | echo " "
161 | }
162 | APP_ARGS=$(save "$@")
163 |
164 | # Collect all arguments for the java command, following the shell quoting and substitution rules
165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
166 |
167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
169 | cd "$(dirname "$0")"
170 | fi
171 |
172 | exec "$JAVACMD" "$@"
173 |
--------------------------------------------------------------------------------
/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | set DIRNAME=%~dp0
12 | if "%DIRNAME%" == "" set DIRNAME=.
13 | set APP_BASE_NAME=%~n0
14 | set APP_HOME=%DIRNAME%
15 |
16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17 | set DEFAULT_JVM_OPTS=
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windows variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 |
53 | :win9xME_args
54 | @rem Slurp the command line arguments.
55 | set CMD_LINE_ARGS=
56 | set _SKIP=2
57 |
58 | :win9xME_args_slurp
59 | if "x%~1" == "x" goto execute
60 |
61 | set CMD_LINE_ARGS=%*
62 |
63 | :execute
64 | @rem Setup the command line
65 |
66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67 |
68 | @rem Execute Gradle
69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70 |
71 | :end
72 | @rem End local scope for the variables with windows NT shell
73 | if "%ERRORLEVEL%"=="0" goto mainEnd
74 |
75 | :fail
76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77 | rem the _cmd.exe /c_ return code!
78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79 | exit /b 1
80 |
81 | :mainEnd
82 | if "%OS%"=="Windows_NT" endlocal
83 |
84 | :omega
85 |
--------------------------------------------------------------------------------
/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app', ':easy-loading'
2 | rootProject.name='Easy Android Loading'
3 |
--------------------------------------------------------------------------------