dependencies {
implementation 'com.jgb.lordsaac.igb.progresslitieigb:progresslottieigb:0.0.1'
}
Manager of progress using Lottie JSON, compatible for Java and Kotlin.
Int Top | In Bottom |
---|---|
- Right-click the res folder.
- Choose New.
- Choose Android Resource Directory.
- Name the directory raw.
- In the Resource Types Section add raw.
- Click ok.
- Copy your JSON lottie in RAW folder
ProgressLoadingIGB.startLoadingIGB(this){
message = "Good Morning!" // Center Message . #OPTIONAL
srcLottieJson = R.raw.loading_a // Your Source JSON Lottie
timer = 10000 // Time of live for progress. #OPTIONAL
}
starLoadingSimpleIGB(R.raw.pork_dance)
finishLoadingIGB()
starLoadingSimpleIGB(R.raw.pork_dance)
Handler().postDelayed({
finishLoadingIGB()
}, 1500)
ProgressLoadingJIGB.startLoadingJIGB(context,R.raw.pork_dance,"Happy New Year 2019...",0);
ProgressLoadingJIGB.finishLoadingJIGB(context);
ProgressLoadingJIGB.startLoadingJIGB(context,R.raw.pork_dance,"Happy New Year 2019...",0);
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
ProgressLoadingJIGB.finishLoadingJIGB(context);
}
}, 6000);
Here: https://www.lottiefiles.com/
Copyright 2018 Isaac G. Banda
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.