An android library through which users can add a customized loading dialog box with Lottie Animations.

Overview

CustomLottieDialogBox

Coding

About

CustomLottieDialogBox is an android library which facilitate developers to add customized loading Dialog-Boxes to their android apps. Users can add Lottie Animations of thier wish or can choose from the already existing animation. They can change the backgroung color, text color, size of dialog box or can add thier own custom text using this library.

Minimum SDK Version Platform


Installation:

  • Step 1. Add it in your root build.gradle at the end of repositories:
allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
  • Step 2. Add the dependency:
dependencies {
	        implementation 'com.github.SiddyDevelops:CustomLottieDialogBox-Android:0.2.0'
	}

Usage:

In your activity.java follow the steps given below to add the custom Dialog:

  • To add an animation from the library-builtin:

     CustomLottieDialog customLottieDialog;
     customLottieDialog = new CustomLottieDialog(context, "LO01");
     customLottieDialog.show();
    
  • To add your own custom Lottie animation: First download Lottie JSON of your preferred animation and add the downloaded file to raw inside res.

LottiePreview

CustomLottieDialog customLottieDialog;
customLottieDialog = new CustomLottieDialog(context,R.raw.heartbeat_loader);
customLottieDialog.show();
  • To customize the Loading Text:

     customLottieDialog.setLoadingText("Custom Text");
     		OR
     customLottieDialog.setLoadingText("");          //-----> To remove custom text
    
  • To change text-color of custom loading text:

     customLottieDialog.setLoadingTextColor("{HexColorCode}");
    
  • To change Lottie animation background color:

     customLottieDialog.setLottieBackgroundColor("{HexColorCode}");
    
  • To change the dimensions of the dialog box:

     customLottieDialog.setDialogLayoutDimensions({width in dp (int)},{height in dp (int));
    
  • To dismiss the dialog box:

     customLottieDialog.dismiss();
    
  • Example:

     CustomLottieDialog customLottieDialog;
     customLottieDialog = new CustomLottieDialog(MainActivity.this, "LO01");
     customLottieDialog.setLottieBackgroundColor("#7AC89E");
     customLottieDialog.setLoadingText("Custom Text");
     customLottieDialog.setLoadingTextColor("#FFFFFF");
    

Library-Inbuilt Animations:

Animation lottieBatch
PaperPlane "LO01"
Balance "LO03"
Loop "LO05"
Rocket "LO07"
Animation lottieBatch
Bubble "LO02"
Groove "LO04"
Music "LO06"
Spiral "LO08"

From the Developer:

This Android Library is developed by Siddharth Singh. The animation included in this library is taken from https://lottiefiles.com/ .

Follow my Social Handles for more projects.

Enjoy Coding!! 🚀


You might also like...
Secret Codes is an Open Source application that allows you to browse through hidden codes of your Android phone.
Secret Codes is an Open Source application that allows you to browse through hidden codes of your Android phone.

####Secret Codes is an Open Source application that allows you to browse through hidden codes of your Android phone. This application will scan throug

This is a News Application for android mobiles, fetching news through Guardian API.
This is a News Application for android mobiles, fetching news through Guardian API.

News-In-Hand This is a NEWS FEED APP which gives a user regularly-updated news from the Internet. To achieve this, I use the Guardian API. This is a w

This document will walk you through the steps for creating your Android app that runs a deep learning image classification model trained in Pocket AutoML and exported in TensorFlow Lite format
This document will walk you through the steps for creating your Android app that runs a deep learning image classification model trained in Pocket AutoML and exported in TensorFlow Lite format

Pocket AutoML: Tutorial for Creating an Android App for Image Classification with Deep Learning Translations English (this document) Русский Overview

jtx Board allows you to manage your Journals (like meeting minutes), Notes and Tasks in one Android app. The app is compatible with the iCal standard (RFC5545) and is integrated with DAVx5 to allow the synchronisation of entries through CalDAV. How to integrate classic App Shortcuts with Google Assistant through the new Capabilities API
How to integrate classic App Shortcuts with Google Assistant through the new Capabilities API

Assistant Shortcuts (App Actions) En este ejemplo, revisaremos el uso de los clásicos Shortcuts de Android repotenciados con Google Assistant, haciend

App to randomly translate word through different languages

App to randomly translate word through different languages

LedBuzz is a NodeMCU-powered see-through propeller display
LedBuzz is a NodeMCU-powered see-through propeller display

LedBuzz What it does LedBuzz is a NodeMCU-powered see-through propeller display. By simply staring at your ceiling fan, you receive notification alert

Movie Info - MovieInfo app that recieves popular movies and allow the user to search for specific movie through the restapi
Movie Info - MovieInfo app that recieves popular movies and allow the user to search for specific movie through the restapi

Movie_Info MovieInfo app that recieves popular movies and allow the user to sear

Whatsapp based Phone number verification.Verify your phone number easily through whatsapp
Whatsapp based Phone number verification.Verify your phone number easily through whatsapp

Whatsapp Based Login Try this to implement fastest phone number verification system [ ⚡ ] Verify your phone number through whatsapp android LinkedIn B

Releases(0.2.0)
Owner
Siddharth Singh
I'm not a great programmer. I'm just a good programmer with great habits.
Siddharth Singh
Added more features to app's crash dialog, fixed custom rom deleted dialog, the best experience to Android developer.

AppErrorsTracking 应用异常跟踪 Added more features to app's crash dialog, fixed custom rom deleted dialog, the best experience to Android developer. 为原生 FC

狐狸派 83 Jan 8, 2023
This is an android app using which users can chat to people nearby them with help of Bluetooth.

This is an android app using which users can chat to people nearby them with help of Bluetooth. This app is developed in Kotlin programming language. It is still in its early stages of development and currently let user to one-person-one-time chat at a time. It is under heavy development ????

Shalu Ambasta 4 Sep 28, 2022
A dictionary that works out of box

Easydict A dictionary that works out of box Features Basic dictionary functions, query word, show the definition and translation Show the query histor

chen_null 0 May 16, 2022
An android app which allows users to display the data of any excel sheet in rows and columns

ExcelReader App description An android app which allows users to display the data of any excel sheet in rows and columns. Features Display data of an

Srihitha Tadiparthi 4 Oct 25, 2022
An Open Source App which enables users to drop all their professional handles and projects at one place.

An Open Source App which enables users to drop all their professional handles and projects at one place. This is a Beginner Friendly Repository made for Open Source Enthusiasts who can contribute to the App during HacktoberFest 2021.

GDSC JSS Noida 32 May 26, 2022
An android app that show us nike products and user can buy them or add to shopping cart.

Nike Store-Android-App An android app that show us nike products and user can buy them or add to shopping cart. Screenshots Libraries included Materia

mojtaba joshaghani 9 Aug 13, 2022
ShopKeeper - A simple android app for sellers. The seller can add, edit and delete products that are bought by customers

ShopKeeper - A simple android app for sellers. The seller can add, edit and delete products that are bought by customers

Amit Kumar guha 1 Feb 23, 2022
AnimApp is an app that recommends you random anime and you can add it to your favourite if you like it.

papb-team6 AnimApp is an app that recommends you animes and you can add it to your favourite if you like it. Team members: Firdaus Bisma Suryakusuma (

Gilang Adhitama Putra 1 Mar 9, 2022
RoboDemo is a ShowCase library for Android to demonstrate to users how a given Activity works.

RoboDemo RoboDemo is a ShowCase library for Android to demonstrate to users how a given Activity works. A sample is available in the download area of

Stéphane Nicolas 220 Nov 25, 2022
Demo of Downloading Songs/Images through Android Download Manager using RxJava2

Downloader Demo using RxJava Overview This project is for downloading items(songs, images etc) in Android using RxJava2. There are, however 2 conditio

Anshul Jain 168 Nov 25, 2022