Description
Android Library to implement custom and beautiful Dialog in apps easily.
Aesthetic Dialogs for Android ๐ฑ alternatives and similar packages
Based on the "Dialog Widget" category.
Alternatively, view Aesthetic Dialogs for Android ๐ฑ alternatives based on common mentions on social networks and blogs.
-
LicensesDialog
LicensesDialog is an open source library to display licenses of third-party libraries in an Android app. -
FancyGifDialog-Android
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. -
LongPressPopup
Make a Popup appear long pressing on a view and handle drag-release events on its elements -
PostOffice
DISCONTINUED. This is a library for easily constructing Holo and Material Design Dialogs. -
AndroidSliderPreference
DISCONTINUED. Android library that allows applications to add dialog-based slider widgets to their settings -
WhatIsNewDialog
An Android library for displaying a dialog where it presents new features in the app. -
MonthYearPickerDialog
Dialog for Android that allows pick month and year without exact day which is impossible with standard DatePickerDialog. It has customizable UI and different modes of selecting.
InfluxDB - Power Real-Time Data Analytics at Scale
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Aesthetic Dialogs for Android ๐ฑ or a related project?
README
Aesthetic Dialogs for Android ๐ฑ
๐ฑ Android Library for ๐ซfluid, ๐beautiful, ๐จcustom Dialogs.
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 RAINBOWFLATCONNECTIFYTOASTERDRAKEEMOJIEMOTION SUCCESSERRORWARNINGINFO DEFAULTSLIDE_UP, SLIDE_DOWNSLIDE_LEFT, SLIDE_RIGHT SWIPE_LEFT, SWIPE_RIGHTIN_OUTCARD SHRINKSPLITDIAGONALSPINWINDMILLFADEZOOM
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](CONTRIBUTING.md).
Credits
This library is built using following open-source libraries.
License
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 :)
*Note that all licence references and agreements mentioned in the Aesthetic Dialogs for Android ๐ฑ README section above
are relevant to that project's source code only.