Skip to content

Abhay-cloud/AwesomeProgressDialog-Android

Repository files navigation

Awesome Progress Dialog 📱

JitPack API

An animated progress dialog library for Android.

1. Style Loading Gears 2. Style Loading SandClocK 3. Style Loading Rocket

Site Map

Introduction

Awesome Progress Dialog is an animated progress dialog library for Android which is built by using beautiful Lottie animations. This library will be useful to create animated, rich, beautiful progress dialogs in Android apps easily.

Various dialogs

We offer various styles of progress dialog i.e. Simple Progress Dialog, Loading Gears Dialog, Loading Sandclock Dialog, Loading Ferris Wheel dialog, etc. To get all styles refer Different Styles of progress dialog.

Implementation

Step 1. Add the JitPack repository to your build file

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.Abhay-cloud:AwesomeProgressDialog-Android:0.1'
	}

Usage

Java:

AwesomeProgressDialog progressDialog = new AwesomeProgressDialog(Context);
progressDialog.addTitle("Loading..."); // add your title here. 
// By default title is "Loading".
progressDialog.setStyle(AwesomeProgressDialog.STYLE_LOADING_SIMPLE);
// By default style is SIMPLE Loading style
// you can change it 
progressDialog.showDialog();

Set Different Styles

You can change style of dialog by using .setStyle method:

progressDialog.setStyle(AwesomeProgressDialog.STYLE_LOADING_FERRISWHEEL);

Current available styles:

  • STYLE_LOADING_SIMPLE
  • STYLE_LOADING_DOTS
  • STYLE_LOADING_TILES
  • STYLE_LOADING_GEARS
  • STYLE_LOADING_PLANE
  • STYLE_LOADING_ROCKET
  • STYLE_LOADING_FERRISWHEEL
  • STYLE_LOADING_SANDCLOCK
  • STYLE_LOADING_SCOOTER
  • STYLE_LOADING_DELIVERY
  • STYLE_LOADING_CART
  • STYLE_LOADING_WHEEL
  • STYLE_LOADING_EARTH
  • STYLE_LOADING_SPIDER
  • STYLE_LOADING_BARS
  • STYLE_LOADING_CIRCLE
  • STYLE_LOADING_CIRCLE2

Methods

  • .addTitle(String title);
progressDialog.addTitle("Loading...");
  • .hideTitle();
progressDialog.hideTitle();
  • .isCancelable(boolean val);
progressDialog.isCancelable(false);
  • .showDialog();
progressDialog.showDialog();
  • .setStyle(String style);
progressDialog.setStyle(AwesomeProgressDialog.STYLE_LOADING_FERRISWHEEL);
  • .dismissDialog();
progressDialog.dismissDialog();
  • .setNoInternet(String title); This method don't detect connection change. You'll have to call it in your custom internet detection code.
progressDialog.setNoInternet("Connection Lost");

Contributing

Contributions are always welcome!

Let's develop with collaborations. We would love to have contributions by raising issues.

Credits

This library is built by using:.

LICENSE

Project is published under the Apache 2.0 license. Feel free to clone and modify repository as you want, but don't forget to add reference to authors.

Connect with me

If you have any difficulty then just message me on Instagram or Telegram.

Made with ❤️ by Abhay