All Projects → LordSaac → ProgressLottieIGB

LordSaac / ProgressLottieIGB

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

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to ProgressLottieIGB

Rhplaceholder
Show pleasant loading view for your users 😍
Stars: ✭ 238 (+1033.33%)
Mutual labels:  loading-animations
Xamarin.iOS.DGActivityIndicatorView
🔰 DGActivityIndicatorView is a collection of nice loading animations for Xamarin.iOS.
Stars: ✭ 28 (+33.33%)
Mutual labels:  loading-animations
favicon-canvas-loader
Create and display a circular loading <canvas> animation as a webpage favicon.
Stars: ✭ 83 (+295.24%)
Mutual labels:  loading-animations
Text Spinners
Pure text, CSS only, font independent, inline loading indicators
Stars: ✭ 2,728 (+12890.48%)
Mutual labels:  loading-animations
loading
Laravel package to add loading indicator to pages while page is loading.
Stars: ✭ 38 (+80.95%)
Mutual labels:  loading-animations
BSLoader
It's to show loading animations
Stars: ✭ 13 (-38.1%)
Mutual labels:  loading-animations
Loadgo
LoadGo is a Javascript plugin for using your logo as a progress bar.
Stars: ✭ 214 (+919.05%)
Mutual labels:  loading-animations
Xamarin.Android.AVLoadingIndicatorView
🔰 AVLoadingIndicatorView is a collection of nice loading animations for Xamarin.Android.
Stars: ✭ 26 (+23.81%)
Mutual labels:  loading-animations
SSSwiftUISpinnerButton
SSSwiftUISpinnerButton is a collection of various spinning animations for buttons in SwiftUI.
Stars: ✭ 37 (+76.19%)
Mutual labels:  loading-animations
react-loading-icons
A TypeScript-React edition of Sam Herbert's amazing SVG Loaders.
Stars: ✭ 32 (+52.38%)
Mutual labels:  loading-animations
respinner
Pretty and customizable svg spinners for React.js
Stars: ✭ 89 (+323.81%)
Mutual labels:  loading-animations
Shimmer-ReactNative
React Native Shimmer
Stars: ✭ 38 (+80.95%)
Mutual labels:  loading-animations
SwiftUI-DesignCode
 SwiftUI-DesignCode is some examples in the process of learning swiftUI 2.0
Stars: ✭ 185 (+780.95%)
Mutual labels:  loading-animations
Tabanimated
A skeleton screen framework based on native for iOS. (一个由iOS原生组件映射出骨架屏的框架,包含快速植入,低耦合,兼容复杂视图等特点,提供国内主流骨架屏动画的加载方案,同时支持上拉加载更多、自定制动画。)
Stars: ✭ 2,909 (+13752.38%)
Mutual labels:  loading-animations
fun-loading
基于React的Loading组件库。
Stars: ✭ 22 (+4.76%)
Mutual labels:  loading-animations
Beerprogressview
A library that lets you create a beer styled progress view with bubbles and all! (hic) 🍺
Stars: ✭ 230 (+995.24%)
Mutual labels:  loading-animations
FlutterLoadingGIFs
Loading indicator GIFs. Material and Cupertino (Android and iOS) loading indicators in assorted sizes. Use as placeholders for loading remote image assets. Demo: https://gallery.codelessly.com/flutterwebsites/loadinggifs/
Stars: ✭ 28 (+33.33%)
Mutual labels:  loading-animations
easy-css-layout
Easy css layout
Stars: ✭ 117 (+457.14%)
Mutual labels:  loading-animations
Fluent-Design
Microsoft's Fluent Design with pure HTML/CSS/JS
Stars: ✭ 36 (+71.43%)
Mutual labels:  loading-animations
react-native-spinner-button
React Native button component with multiple animated spinners
Stars: ✭ 105 (+400%)
Mutual labels:  loading-animations

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

New options for personality:

  • Size text message
  • Style Dialog
  • Color text message
  • Add font for text

Add font for your project check documents: https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts


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
            
        }

StartLoading Whith Simple Method:

starLoadingSimpleIGB(R.raw.pork_dance)

Remove progress:

finishLoadingIGB()

Example:

      starLoadingSimpleIGB(R.raw.pork_dance)

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

Use cancel button:

This method the user will active for cancel any process.

Add this implement in your class: Kotlin IProgressLoadingActions

Example:

class MainActivity : AppCompatActivity(), IProgressLoadingActions {
      
      
       fun click(view: View){

        ProgressLoadingIGB.startLoadingIGB(this){
            message = "Please Wait" //  Center Message
            sizeTextMessage = 50.0f // Size text // Optional
            fontTextMessage = your font project// Set your personal font // Optional
            srcLottieJson = R.raw.loader // Your Source JSON Lottie
            fontColorMessage = Color.GREEN
            timer = 10000               // Time of live for progress.
            hight = 700 // Optional
            width = 700 // Optional
            cancelButton = true // Optional added cancel button
            cancelButtonAlpha = 0.6f  // Optional
            cancelButtonHight = 75  // Optional
            cancelButtonWidth = 60 // Optional
            cancelButtonColor = R.color.colorAccent  // Optional
           // cancelButtonBackground = R.drawable.ic_launcher_background //OPTIONAL recommendable use vector xml

        }
    }
      override fun CancelButton() {
        val builder =
            AlertDialog.Builder(this)
        builder.setTitle("Cancel")
        builder.setMessage("Here close any process")

        builder.setPositiveButton("OK", null)

        val dialog = builder.create()
        dialog.show()
    }
}

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
        };

StartLoading Whith Simple Method:

ProgressLoadingJIGB.startLoading(this);

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);

Use cancel button:

This method the user will active for cancel any process.

Add this implement in your class: IProgressLoadingActions

Example:

public class Main2Activity extends AppCompatActivity implements IProgressLoadingActions {
      
      
      public void clickOption(View v){

           ProgressLoadingJIGB.setupLoading = (setup) ->  {
            setup.srcLottieJson = R.raw.travel; // Your Source JSON Lottie
            setup.message = "Welcome Summer!";//  Center Message
            setup.sizeTextMessage = 16.0f;// Size text // Optional
            setup.styleDialog = Your Style; // Optional
            setup.timer = 0;   // Time of live for progress.
            setup.width = 500; // Optional
            setup.hight = 500; // Optional
            setup.cancelButton = true; // Optional
            setup.cancelButtonAlpha = 1f; // Optional
            setup.cancelButtonHight = 75; // Optional
            setup.cancelButtonWidth = 45; // Optional
           // setup.cancelButtonBackground = R.drawable.ic_launcher_background; //OPTIONAL recomendable use vector xml

        };


      }
        
    @Override
    public void CancelButton() {
        // setup the alert builder
        AlertDialog.Builder builder = new AlertDialog.Builder(this);
        builder.setTitle("Cancel");
        builder.setMessage("Here close any process");

        // add a button
        builder.setPositiveButton("OK", null);

        // create and show the alert dialog
        AlertDialog dialog = builder.create();
        dialog.show();
    }
}

Gradle Dependency

  • Add the JitPack repository to your project's build.gradle file

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  • Add the dependency in your app's build.gradle file
    
    dependencies {
	        implementation 'com.github.LordSaac:ProgressLottieIGB:v1.0.2'
	}
    

Contribution

You are most welcome to contribute to this project!

iOS version:

✳️   Do you need iOS Version for you project ?, check out here: https://github.com/LordSaac/IGProgressLottie-Swift

Download more Animations:

See more animations here: https://www.lottiefiles.com/


Released July 17, 2020

Licence

Copyright 2020 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].