๐Ÿ“ฑ An Android Library for ๐Ÿ’ซfluid, ๐Ÿ˜beautiful, ๐ŸŽจcustom Dialogs.

Overview

Aesthetic Dialogs for Android ๐Ÿ“ฑ

platform API License Open Source? Yes!

๐Ÿ“ฑ Android Library for ๐Ÿ’ซ fluid, ๐Ÿ˜ beautiful, ๐ŸŽจ custom Dialogs.

Get it on Google Play

Table of Contents:

Introduction

AestheticDialogs is a library that provides beautiful and custom Dialog inspired by Laravel Notify

Types of Dialog

AestheticDialog At this moment, library provides eight types of dialog i.e.

1. Flash Dialog 2. Connectify Dialog 3. Toaster Dialog
4. Emotion Dialog 5. Drake Dialog 6. Emoji Dialog
7. Rainbow Dialog 8. Flat Dialog

Dark Mode

AestheticDialog Also provides Dark Theme for some dialogs i.e.

1. Connectify Dark Dialog 2. Toaster Dark Dialog 3. Emoji Dark Dialog
4. Flat Dark Dialog LET's USE aesthetic Dialog !

Implementation

Implementation of Aesthetic Dialogs is simple. You can check /app directory for demo. Let's have look on basic steps of implementation.

Prerequisite

i. Gradle

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.gabriel-TheCode:AestheticDialogs:1.3.6'
}

Create Dialog

You can create multiple dialogs by specifying the style of your component, the type, and the animation of alert you want to display to the user. You can override the .setOnClickListener() method to add a particular event, however some dialogs do not need it.

Example 1: Flat Dialog

                  AestheticDialog.Builder(this, DialogStyle.FLAT, DialogType.SUCCESS)
                        .setTitle("Title")
                        .setMessage("Message")
                        .setCancelable(false)
                        .setDarkMode(true)
                        .setGravity(Gravity.CENTER)
                        .setAnimation(DialogAnimation.SHRINK)
                        .setOnClickListener(object : OnDialogClickListener {
                            override fun onClick(dialog: AestheticDialog.Builder) {
                                dialog.dismiss()
                                //actions...
                            }
                        })
                        .show()

Example 2: Emotion Dialog

  AestheticDialog.Builder(this, DialogStyle.EMOTION, DialogType.ERROR)
                        .setTitle("Title")
                        .setMessage("Message")
                        .show()

Optional methods

  • setCancelable()
  • setDarkMode()
  • setDuration()
  • setGravity()
  • setAnimation()

Constants

DIALOG STYLE DIALOG TYPE DIALOG ANIMATION
RAINBOW
FLAT
CONNECTIFY
TOASTER
DRAKE
EMOJI
EMOTION
SUCCESS
ERROR
WARNING
INFO
DEFAULT
SLIDE_UP, SLIDE_DOWN
SLIDE_LEFT, SLIDE_RIGHT
SWIPE_LEFT, SWIPE_RIGHT
IN_OUT
CARD
SHRINK
SPLIT
DIAGONAL
SPIN
WINDMILL
FADE
ZOOM

Demo

You can download the demo app on PlayStore

Contribute

Let's develop with collaborations. We would love to have contributions by raising issues and opening PRs. Filing an issue before PR is must. See Contributing Guidelines.

Credits

This library is built using following open-source libraries.

License

Open Source Love svg1

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

Comments
  • On Android 5.0 the application crash the you call showFlashDialog Method

    On Android 5.0 the application crash the you call showFlashDialog Method

    android.view.InflateException: Binary XML file line #26: Error inflating class androidx.appcompat.widget.AppCompatImageView at android.view.LayoutInflater.createView(LayoutInflater.java:640) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750) at android.view.LayoutInflater.rInflate(LayoutInflater.java:813) at android.view.LayoutInflater.rInflate(LayoutInflater.java:821) at android.view.LayoutInflater.inflate(LayoutInflater.java:511) at android.view.LayoutInflater.inflate(LayoutInflater.java:415) at android.view.LayoutInflater.inflate(LayoutInflater.java:366) at com.thecode.aestheticdialogs.AestheticDialog.showFlashDialog(AestheticDialog.java:235)

    good first issue 
    opened by eric-ampire 4
  • Add Onlistener

    Add Onlistener

    Hi Sir I really like you library but can you add onlistener propreties ? I would like to use your library for going on another activity when my users click on the Ok button

    enhancement 
    opened by anonym2 2
  • setOnClickListener problem in Java

    setOnClickListener problem in Java

    I am working in Java and have problem when trying to use setOnClickListener Without it everything works in A-Studio, like Gab kt ok

    yet when adding setOnClickListener here is what I get

    Gab kt

    Please advise on proper syntax for Java

    opened by skreenr 1
  • Resource Linking Issue

    Resource Linking Issue

    Hey, I found some issue. When I've added:

    implementation 'com.github.gabriel-TheCode:AestheticDialogs:1.3.4'

    I'm getting error messages like resources not found (colors/...)

    Could you please move these colors: https://github.com/gabriel-TheCode/AestheticDialogs/blob/master/app/src/main/res/values/colors.xml (from example app module) to library level? https://github.com/gabriel-TheCode/AestheticDialogs/tree/master/aestheticdialogs/src/main/res

    Thanks!

    opened by walkmn 1
  • ๐Ÿ”ฐ AestheticDialogs v1.3.0

    ๐Ÿ”ฐ AestheticDialogs v1.3.0

    • ๐Ÿ’ฏ Migration of source code from Java to Kotlin
    • ๐Ÿšฎ Removal of deprecated methods
    • ๐Ÿ›  Code refactoring based on the design pattern Builder
    • โœ… Adding setCancelable () property
    • โซ Migration from Gradle 5.4.1 to 6.1.1
    • โœ… Addition of the setOnClickListener() method on dialogs with a button
    • ๐Ÿ”„ Update README.md
    enhancement 
    opened by gabriel-TheCode 0
Releases(1.3.6)
Owner
Gabriel TEKOMBO
๐—œ ๐—น๐—ผ๐˜ƒ๐—ฒ ๐˜๐—ผ ๐—ฐ๐—ฟ๐—ฒ๐—ฎ๐˜๐—ฒ ! Software Developer - Android Enthusiast
Gabriel TEKOMBO
โญ โ€Žโ€Žโ€Žโ€โ€โ€Ž โ€ŽOffers a range of beautiful sheets (dialogs & bottom sheets) for quick use in your project. Includes many ways to customize sheets.

Sheets Sleek dialogs and bottom-sheets for quick use in your app. Choose one of the available sheets or build custom sheets on top of the existing fun

Maximilian Keppeler 838 Dec 30, 2022
A simple library for creating animated warnings/dialogs/alerts for Android.

Noty A simple library for creating animated warnings/notifications for Android. Examples Show me code Show me code Show me code Show me code Show me c

Emre 144 Nov 29, 2022
A small library replicating the new dialogs in android L.

L-Dialogs A small library replicating the new dialogs in android L. Set Up (Android Studio): Download the aar here: https://www.dropbox.com/s/276bhapr

Lewis Deane 572 Nov 11, 2022
Backport of Material dialogs with easy-to-use API based on DialogFragment

StyledDialogs for Android Demo app: Features: Compatible with Material Design Guidelines Same look for Android 2.2+ Built on top of standard DialogFra

Avast 2.2k Dec 29, 2022
Backport of Material dialogs with easy-to-use API based on DialogFragment

StyledDialogs for Android Demo app: Features: Compatible with Material Design Guidelines Same look for Android 2.2+ Built on top of standard DialogFra

Avast 2.2k Nov 29, 2022
Sleek dialogs and bottom-sheets for quick use in your app

โญ โ€Žโ€Žโ€Žโ€โ€โ€Ž โ€ŽOffers a range of beautiful sheets (dialogs & bottom sheets) for quick use in your project. Includes many ways to customize sheets.

Maximilian Keppeler 835 Dec 25, 2022
An beautiful and easy to use dialog library for Android

An beautiful and easy to use dialog library for Android

ShouHeng 22 Nov 8, 2022
AlertDialog for Android, a beautiful and material alert dialog to use in your android app.

AlertDialog for Android, a beautiful and material alert dialog to use in your android app. Older verion of this library has been removed

Akshay Masram 124 Dec 28, 2022
SweetAlert for Android, a beautiful and clever alert dialog

Sweet Alert Dialog SweetAlert for Android, a beautiful and clever alert dialog ไธญๆ–‡็‰ˆ Inspired by JavaScript SweetAlert Demo Download ScreenShot Setup Th

ไนฆๅ‘†ๅญ 7.3k Dec 30, 2022
Extremely useful library to validate EditText inputs whether by using just the validator for your custom view or using library's extremely resizable & customisable dialog

Extremely useful library for validating EditText inputs whether by using just the validator (OtpinVerification) for your custom view or using library's extremely resizable & customisable dialog (OtpinDialogCreator)

Ehma Ugbogo 17 Oct 25, 2022
A simple library to show custom dialog with animation in android

SmartDialog A simple library to show custom dialog in android Step 1. Add the JitPack repository to your build file allprojects { repositories {

claudysoft 9 Aug 18, 2022
CuteDialog- Android Custom Material Dialog Library

A Custom Material Design Dialog Library for Android Purpose CuteDialog is a Highly Customizable Material Design Android Library. CuteDialog allows dev

CuteLibs - Smart & Beautiful Android Libraries 7 Dec 7, 2022
[Deprecated] This project can make it easy to theme and custom Android's dialog. Also provides Holo and Material themes for old devices.

Deprecated Please use android.support.v7.app.AlertDialog of support-v7. AlertDialogPro Why AlertDialogPro? Theming Android's AlertDialog is not an eas

Feng Dai 468 Nov 10, 2022
a quick custom android dialog project

QustomDialog Qustom helps you make quick custom dialogs for Android. All this is, for the time being, is a way to make it easy to achieve the Holo loo

Daniel Smith 183 Nov 20, 2022
Custom Dialog

Custom Dialog use Lottie Dialog How To Use? If yow want specific lottie file you must put your assets to under app โ†’ src โ†’ main โ†’ assets folder Add li

DevHoony 16 Oct 10, 2022
Make your native android Dialog Fancy and Gify. A library that takes the standard Android Dialog to the next level with a variety of styling options and Gif's. Style your dialog from code.

FancyGifDialog-Android Prerequisites Add this in your root build.gradle file (not your module build.gradle file): allprojects { repositories { ...

Shashank Singhal 522 Jan 2, 2023
LicensesDialog is an open source library to display licenses of third-party libraries in an Android app.

LicensesDialog LicensesDialog is an open source library to display licenses of third-party libraries in an Android app. Download Download the latest R

PSDev 817 Dec 30, 2022
Android library to show "Rate this app" dialog

Android-RateThisApp Android-RateThisApp is an library to show "Rate this app" dialog. The library monitors the following status How many times is the

Keisuke Kobayashi 553 Nov 23, 2022
Android library that allows applications to add dialog-based slider widgets to their settings

Android Slider Preference Library Overview Slider represents a float between 0.0 and 1.0 Access with SliderPreference.getValue() or SharedPreferences.

Jay Petacat 135 Nov 29, 2022