ProgressLottieIGB

Additional

Language
Kotlin
Version
N/A
Created
Jan 1, 2019
Updated
Jun 10, 2019
Owner
Isaac G. Banda (LordSaac)
Contributor
Isaac G. Banda (LordSaac)
1
Activity
Badge
Generate
Download
Source code
APK file

Blurb

Progress Lottie IGB

Manager of progress using Lottie JSON, compatible for Java and Kotlin.

Int Top In Bottom

Important Info:

To create a raw folder:

  • 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

Kotlin Code

Code:

    ProgressLoadingIGB.startLoadingIGB(this){
            message = "Good Morning!" //  Center Message
            srcLottieJson = R.raw.loading_a // Tour Source JSON Lottie
            timer = 10000                   // Time of live for progress.
            hight = 500 // Optional
            width = 500 // Optional

        }

Simple Method:

starLoadingSimpleIGB(R.raw.pork_dance)

Remove progress:

finishLoadingIGB()

Example:

      starLoadingSimpleIGB(R.raw.pork_dance)

        Handler().postDelayed({
            finishLoadingIGB()
        }, 1500)

Java Code

It is recommended to use Java 8 onwards.

Code:

        ProgressLoadingJIGB.setupLoading = (setup) ->  {
            setup.srcLottieJson = R.raw.sun; // Tour Source JSON Lottie
            setup.message = "Welcome Summer!";//  Center Message
            setup.timer = 0;   // Time of live for progress.
            setup.width = 200; // Optional
            setup.hight = 200; // Optional
        };

Remove progress:

  ProgressLoadingJIGB.finishLoadingJIGB(context);

Example:

           ProgressLoadingJIGB.setupLoading = (setup) ->  {
            setup.srcLottieJson = R.raw.sun; // Tour Source JSON Lottie
            setup.message = "Welcome Summer!";//  Center Message
            setup.timer = 0;   // Time of live for progress.
            setup.width = 200; // Optional
            setup.hight = 200; // Optional
        };

        final Handler handler = new Handler();
        handler.postDelayed(new Runnable() {
            @Override
            public void run() {
                ProgressLoadingJIGB.finishLoadingJIGB(context);
            }
        }, 6000);

For More Animations:

Here: https://www.lottiefiles.com/

Dependency:

dependencies { } ☕️ Oh, amazing, I buy you a coffee Here⭐️ Or you could give a star Here🙌 Thanks!

implementation 'com.jgb.lordsaac.igb.progresslitieigb:progresslottieigb:0.0.3'