chnouman / Awesomedialog
A Beautiful Dialog Library for Kotlin Android
Stars: ✭ 163
Programming Languages
kotlin
9241 projects
Labels
Projects that are alternatives of or similar to Awesomedialog
Mediapicker
Easy customizable picker for all your needs in Android application
Stars: ✭ 105 (-35.58%)
Mutual labels: android-app, androidstudio, material-design, android-development, android-sdk, android-ui
Motiontoast
🌈 A Beautiful Motion Toast Library for Kotlin Android
Stars: ✭ 767 (+370.55%)
Mutual labels: android-app, androidstudio, material-design, android-development, android-sdk, android-ui
Ibackdrop
A library to simply use Backdrop in your project (make it easy). Read more ->
Stars: ✭ 137 (-15.95%)
Mutual labels: android-app, androidstudio, material-design, android-development, android-sdk, android-ui
Androidkex
Extensions for Kotlin. Use the power of Kotlin to make your code smaller and beautiful.
Stars: ✭ 35 (-78.53%)
Mutual labels: android-app, androidstudio, android-development, android-sdk, android-ui
Modern Android Development
Modern Android Development tools & key points
Stars: ✭ 219 (+34.36%)
Mutual labels: android-app, androidstudio, android-development, android-sdk, android-ui
Android Customtoast
Easy to use Custom Toast Library for Android
Stars: ✭ 24 (-85.28%)
Mutual labels: android-app, androidstudio, material-design, android-development, android-ui
media-picker
Easy customizable picker for all your needs in Android application
Stars: ✭ 167 (+2.45%)
Mutual labels: android-sdk, android-development, android-ui, android-app, androidstudio
Cameraxdemo
A sample camera app with CameraX API from Android Jetpack
Stars: ✭ 112 (-31.29%)
Mutual labels: android-app, androidstudio, android-development, android-sdk, android-ui
Biometric-Authentication-Android
A sample implementation of AndroidX biometrics API using Kotlin. Authenticate using biometrics or PIN/Password if biometrics isn't available on device. Fully implemented in Jetpack compose using Material 3 dynamic theming and also has a separate implementation in xml with MDC 3.
Stars: ✭ 29 (-82.21%)
Mutual labels: android-sdk, android-development, android-ui, android-app, androidstudio
Datingapp
Dating UI kit is used for online meet up with girls and boys . The screen contains more than 30 icons and most of all required elements required to design an application like this. The XML and JAVA files contains comments at each and every point for easy understanding. Everything was made with a detail oriented style and followed by today's web trends. Clean coded & Layers are well-organized, carefully named, and grouped.
Stars: ✭ 97 (-40.49%)
Mutual labels: android-app, androidstudio, material-design, android-development, android-ui
Android Inappbilling
A sample which uses Google's Play Billing Library and it does InApp Purchases and Subscriptions.
Stars: ✭ 114 (-30.06%)
Mutual labels: android-app, androidstudio, android-development, android-sdk, android-ui
AndroidBatteryStats
Displays all battery stats of an Android device using broadcast receiver.
Stars: ✭ 20 (-87.73%)
Mutual labels: android-development, android-ui, android-app, androidstudio
Expenso
📊 A Minimal Expense Tracker App built to demonstrate the use of modern android architecture component with MVVM Architecture
Stars: ✭ 325 (+99.39%)
Mutual labels: android-app, material-design, android-development, android-ui
Android-daily-read-tips
log for articles and info in android for every developer
Stars: ✭ 13 (-92.02%)
Mutual labels: android-sdk, android-development, android-ui, android-app
Awesome Android Ui
😎 A curated list of awesome Android UI/UX libraries
Stars: ✭ 353 (+116.56%)
Mutual labels: android-app, android-development, android-sdk, android-ui
Android Arsenal.com
Source to android-arsenal.herokuapp.com
Stars: ✭ 541 (+231.9%)
Mutual labels: android-app, android-development, android-sdk, android-ui
Android-MonetizeApp
A sample which uses Google's Play Billing Library and it makes In-app Purchases and Subscriptions.
Stars: ✭ 149 (-8.59%)
Mutual labels: android-sdk, android-development, android-app, androidstudio
Alerter
An Android Alerting Library
Stars: ✭ 5,213 (+3098.16%)
Mutual labels: android-app, material-design, android-development, android-ui
Zoomrecylerlayout
🎢 Zoom Recycler Layout Manager For Android Kotlin
Stars: ✭ 618 (+279.14%)
Mutual labels: android-app, androidstudio, android-development, android-ui
Notzz App
📝 A Simple Note-Taking App built to demonstrate the use of Modern Android development tools - (Kotlin, Coroutines, State Flow, Hilt-Dependency Injection, Jetpack DataStore, Architecture Components, MVVM, Room, Material Design Components).
Stars: ✭ 158 (-3.07%)
Mutual labels: android-app, material-design, android-development, android-ui
Awesome Dialog - A Beautiful Dialogs Library for Android Kotlin 🤩🔥
A Beautiful Multipurpose Awesome Dialogs Library in Android using Kotlin 😍
About
A Beautiful Multipurpose Awesome Dialogs Library in Android using Kotlin.
Dependency Project Level
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' }
}
}
Dependency App Level
Add dependency in your app module
dependencies {
implementation 'com.github.chnouman:AwesomeDialog:1.0.5'
}
Simple Dialog 🖐🏼
AwesomeDialog.build(this)
.title("Congratulations")
.body("Your New Account has been created")
.onPositive("Go To My Account") {
Log.d("TAG", "positive ")
}
Dialog With Icon ⌛️
AwesomeDialog.build(this)
.title("Congratulations")
.body("Your New Account has been created")
.icon(R.drawable.ic_congrts)
.onPositive("Go To My Account") {
Log.d("TAG", "positive ")
}
Usage
Sample Code for 🌟
Icon+Title+Body
AwesomeDialog.build(this)
.title(title)
.body(body)
.icon(R.drawable.ic_congrts)
Output
Icon+Title+Body+ (+ Button)
AwesomeDialog.build(this)
.title(title)
.body(body)
.icon(R.drawable.ic_congrts)
.onPositive(goToMyAccount) {
Log.d("TAG", "positive ")
}
Output
Icon+Title+Body+ (+/- Button)
AwesomeDialog.build(this)
.title(title)
.body(body)
.icon(R.drawable.ic_congrts)
.onPositive(goToMyAccount) {
Log.d("TAG", "positive ")
}
.onNegative(cancel) {
Log.d("TAG", "negative ")
}
Output
Title+Body+ (- Button)
AwesomeDialog.build(this)
.title(title)
.body(body)
.onPositive(goToMyAccount) {
Log.d("TAG", "positive ")
}
Output
Title+Body+ (+/- Button)
AwesomeDialog.build(this)
.title(title)
.body(body)
.onPositive(goToMyAccount) {
Log.d("TAG", "positive ")
}
.onNegative(cancel) {
Log.d("TAG", "negative ")
}
Output
Title+Body+ (+/- Button) With Backgroud 🌈
AwesomeDialog.build(this)
.title(
title,
titleColor = ContextCompat.getColor(this, android.R.color.white)
)
.body(
body,
color = ContextCompat.getColor(this, android.R.color.white)
)
.background(R.drawable.layout_rounded_dark_black)
.onPositive(goToMyAccount) {
Log.d("TAG", "positive ")
}
.onNegative(cancel) {
Log.d("TAG", "negative ")
}
Output
Custom Coloring 🌈
AwesomeDialog.build(this)
.title(
title,
titleColor = ContextCompat.getColor(this, android.R.color.white)
)
.body(
body,
color = ContextCompat.getColor(this, android.R.color.white)
)
.icon(R.drawable.ic_congrts)
.background(R.drawable.layout_rounded_green)
.onPositive(
goToMyAccount,
buttonBackgroundColor = R.drawable.layout_rounded_dark_white,
textColor = ContextCompat.getColor(this, android.R.color.black)
) {
Log.d("TAG", "positive ")
}
Output
Positioning
We can customize the Position of Dialog.
POSITIONS.CENTER
POSITIONS.BOTTOM
By Default Position is Bottom.
CENTER | BOTTOM |
---|---|
Awesome Attributes Properties
title()
Parameter | Type | Default Value |
---|---|---|
title | String | Empty String |
fontStyle | TypeFace | Android Default |
titleColor | Int | Android Default Color |
body()
Parameter | Type | Default Value. |
---|---|---|
body | String | Empty String. |
fontStyle | Typeface | Android Default. |
color | Int | Android Default Text Color. |
icon()
Parameter | Type | Default Value |
---|---|---|
icon | Int | Not Null |
animateIcon | Boolean | false |
position()
Parameter | Type | Default Value |
---|---|---|
position | POSITIONS | POSITIONS.BOTTOM |
background()
Parameter | Type | Default Value |
---|---|---|
dialogBackgroundColor | INT | DEFAULT |
onPositive()
Parameter | Type | Default Value |
---|---|---|
text | String | Empty String |
buttonBackgroundColor | Int | Default Color |
action | () -> Unit | Empty |
onNegative()
Parameter | Type | Default Value |
---|---|---|
text | String | Empty String |
buttonBackgroundColor | Int | Default Color |
action | () -> Unit | Empty |
License
Copyright 2020 Muhammad Nouman
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].