AwesomeDialog 3.1 0.0 Kotlin No description, website, or topics provided.

Related tags

Dialog AwesomeDialog
Overview

AwesomeDialog

This library is a set of simple wrapper classes that was created to help you easily make SCLA like dialogs.

Android Arsenal

Gradle

add jitpack to your project

allprojects {
	repositories {
		maven { url 'https://jitpack.io' }
    }
}

compile on your dependencies

dependencies {
	compile 'com.github.blennerSilva:AwesomeDialog:2.0.5'
}

Wiki

General

sample module.

Dialog Types

Each Dialog has its own top color, icon, title and message + its own featured. There are 6 types of dialogs available:

AwesomeInfoDialog

You can set posite and negative buttons here. Closures can be individually set for each button (onClick of any button with closure the button will be dismissed).

 new AwesomeInfoDialog(this)
                .setTitle(R.string.app_name)
                .setMessage(R.string.app_name)
                .setColoredCircle(R.color.dialogInfoBackgroundColor)
                .setDialogIconAndColor(R.drawable.ic_dialog_info, R.color.white)
                .setCancelable(true)
                .setPositiveButtonText(getString(R.string.dialog_yes_button))
                .setPositiveButtonbackgroundColor(R.color.dialogInfoBackgroundColor)
                .setPositiveButtonTextColor(R.color.white)
                .setNeutralButtonText(getString(R.string.dialog_neutral_button))
                .setNeutralButtonbackgroundColor(R.color.dialogInfoBackgroundColor)
                .setNeutralButtonTextColor(R.color.white)
                .setNegativeButtonText(getString(R.string.dialog_no_button))
                .setNegativeButtonbackgroundColor(R.color.dialogInfoBackgroundColor)
                .setNegativeButtonTextColor(R.color.white)
                .setPositiveButtonClick(new Closure() {
                    @Override
                    public void exec() {
                        //click
                    }
                })
                .setNeutralButtonClick(new Closure() {
                    @Override
                    public void exec() {
                        //click
                    }
                })
                .setNegativeButtonClick(new Closure() {
                    @Override
                    public void exec() {
                        //click
                    }
                })
                .show();

AwesomeErrorDialog

Display an Error dialog with one button

  new AwesomeErrorDialog(this)
                .setTitle(R.string.app_name)
                .setMessage(R.string.app_name)
                .setColoredCircle(R.color.dialogErrorBackgroundColor)
                .setDialogIconAndColor(R.drawable.ic_dialog_error, R.color.white)
                .setCancelable(true).setButtonText(getString(R.string.dialog_ok_button))
                .setButtonBackgroundColor(R.color.dialogErrorBackgroundColor)
                .setButtonText(getString(R.string.dialog_ok_button))
                .setErrorButtonClick(new Closure() {
                    @Override
                    public void exec() {
                        // click
                    }
                })
                .show();
    }

AwesomeProgressDialog

Display a Progress Dialog

 new AwesomeInfoDialog(this)
                .setTitle(R.string.app_name)
                .setMessage(R.string.app_name)
                .setColoredCircle(R.color.dialogInfoBackgroundColor)
                .setDialogIconAndColor(R.drawable.ic_dialog_info, R.color.white)
                .setCancelable(true)
                .show();

AwesomeWarningDialog

Display Warning to user with or without button

new AwesomeWarningDialog(this)
                .setTitle(R.string.app_name)
                .setMessage(R.string.app_name)
                .setColoredCircle(R.color.dialogNoticeBackgroundColor)
                .setDialogIconAndColor(R.drawable.ic_notice, R.color.white)
                .setCancelable(true)
                .setButtonText(getString(R.string.dialog_ok_button))
                .setButtonBackgroundColor(R.color.dialogNoticeBackgroundColor)
                .setButtonText(getString(R.string.dialog_ok_button))
                .setWarningButtonClick(new Closure() {
                    @Override
                    public void exec() {
                        // click
                    }
                })
                .show();

AwesomeNoticeDialog

Display notice to user

new AwesomeNoticeDialog(this)
                .setTitle(R.string.app_name)
                .setMessage(R.string.app_name)
                .setColoredCircle(R.color.dialogNoticeBackgroundColor)
                .setDialogIconAndColor(R.drawable.ic_notice, R.color.white)
                .setCancelable(true)
                .setButtonText(getString(R.string.dialog_ok_button))
                .setButtonBackgroundColor(R.color.dialogNoticeBackgroundColor)
                .setButtonText(getString(R.string.dialog_ok_button))
                .setNoticeButtonClick(new Closure() {
                    @Override
                    public void exec() {
                        // click
                    }
                })
                .show();

AwesomeSuccessDialog

Displays a success message, with max of three buttons

new AwesomeSuccessDialog(this)
                .setTitle(R.string.app_name)
                .setMessage(R.string.app_name)
                .setColoredCircle(R.color.dialogSuccessBackgroundColor)
                .setDialogIconAndColor(R.drawable.ic_dialog_info, R.color.white)
                .setCancelable(true)
                .setPositiveButtonText(getString(R.string.dialog_yes_button))
                .setPositiveButtonbackgroundColor(R.color.dialogSuccessBackgroundColor)
                .setPositiveButtonTextColor(R.color.white)
                .setNegativeButtonText(getString(R.string.dialog_no_button))
                .setNegativeButtonbackgroundColor(R.color.dialogSuccessBackgroundColor)
                .setNegativeButtonTextColor(R.color.white)
                .setPositiveButtonClick(new Closure() {
                    @Override
                    public void exec() {
                        //click
                    }
                })
                .setNegativeButtonClick(new Closure() {
                    @Override
                    public void exec() {
                        //click
                    }
                })
                .show();

Screenshots

Info

Error

Progress

Warning

Notice

Success

License

MIT

Copyright (c) 2017-present, Blenner Silva

--

Comments
  • ERROR: Failed to resolve: com.github.blennerSilva:AwesomeDialog:2.0.5

    ERROR: Failed to resolve: com.github.blennerSilva:AwesomeDialog:2.0.5

    I got this error while sync the project "ERROR: Failed to resolve: com.github.blennerSilva:AwesomeDialog:2.0.5"and i have already add "maven { url "https://jitpack.io" }" in my gradle-project am using android 3.3.1

    opened by musabeni 5
  • Can do action when the popup dismiss (backPressed) ?

    Can do action when the popup dismiss (backPressed) ?

    Hello,

    For example i use this with camera qrcode scanner Zbar and when I press back button I must reactivate the scanner.

    It works with the action of button OK i can add line to reactivate but when I can do the line when I click back to my phone when dialog is open ?

    Thanks

    opened by Paul75 3
  • Kotlinize The Library and Android Sample

    Kotlinize The Library and Android Sample

    This PR adds Kotlin powerful features for the library and the sample APP, I did a simple work which is converting your existing code from Java to kotlin, also updating the version of the Gradle and Android Support Library, I hope this is a Good PR.

    opened by Younes-Charfaoui 0
  • Add Neutral Button

    Add Neutral Button

    As suggested in issue #1 , here is the code to add a neutral button. I also updated the README and the code / version name, you just have to add a tag and push the project on maven. There is also a test code comment in the application.

    opened by filol 0
  • Added functionality to add icon only without changing it’s colour

    Added functionality to add icon only without changing it’s colour

    Hey man.

    Didn't really need the icon to be a specific colour, I wanted it to be a picture on the app that I'm working on and it looks great! just though I should edit the library to allow any using it the option :) hope you'll find everything in order

    opened by imne 0
  • Crashes everywhere on android 8+ because of setcolorfilter deprecation

    Crashes everywhere on android 8+ because of setcolorfilter deprecation

    dialogBody.background.setColorFilter(ContextCompat.getColor(context!!, color), PorterDuff.Mode.SRC_IN) - deprecated

    use: dialogBody.background.colorFilter = BlendModeColorFilterCompat.createBlendModeColorFilterCompat(color, BlendModeCompat.SRC_IN)

    Also @ColorRes should be marked as function parameter

    opened by Duna 0
  • Get strings from resources

    Get strings from resources

    You have the context for all dialogs set in constructor. when set all strings set a method to give direct R.string.id to the method in order not to get the string outside the dialog and call the methods with string.

    Good: setTitle setMessage

    Bad: setButtonText - does take only string, but you have the context in the dialog constructor, and you get the string from there

    opened by Duna 0
  • Fatal Exception

    Fatal Exception

    Fatal Exception: android.content.res.Resources$NotFoundException Resource ID #0x7f060090 android.content.res.ResourcesImpl.getValueForDensity (ResourcesImpl.java:229) android.content.Context.getDrawable (Context.java:605) com.awesomedialog.blennersilva.awesomedialoglibrary.AwesomeDialogBuilder$Companion.drawableColorChange (AwesomeDialogBuilder.kt:150)

    opened by Duna 0
Owner
null
****. Use the native and support library variants instead - https://developer.android.com/guide/topics/ui/look-and-feel/fonts-in-xml.html. An android library that makes it easy to add custom fonts to edittexts and textviews

Add to your project Add this line to your dependencies in build.gradle compile 'in.workarounds.typography:typography:0.0.8' Using the views There are

Workarounds 43 Nov 6, 2021
Repetition of the topics covered in Bootcamp

BootcampTekrarHepsiburada Bootcampta işlenen konuların tekrar edilmesi val ve var nedir ? Arasındaki farklar nelerdir ? Değişken tanımlamak istediğimi

Sahranur Er 2 Dec 6, 2021
The app features real-time chatting between different users on daily topics

DailyDiscuss The app features real-time chatting between different users on daily topics. The app comes with 2 types of user interface: Admin who crea

null 1 Dec 20, 2021
Kotlin DALL·E 2 is a new AI system that can create realistic images and art from a description in natural language.

OpenAI Dall•E AI Kotlin Mobile App OpenAI Dall•E Application Build With Kotlin MVVM (Model - View - ViewModel) Clean Architecture, Beautiful Design UI

Murat ÖZTÜRK 15 Jan 1, 2023
Android's TextView that can expand/collapse like the Google Play's app description

ExpandableTextView ExpandableTextView is an Android library that allows developers to easily create an TextView which can expand/collapse just like th

Manabu S. 4k Jan 8, 2023
Android common lib demo, include ImageCache, HttpCache, DropDownListView, DownloadManager, install apk silent and so on, you can find description

android-demo 关于我,欢迎关注 微博:Trinea 主页:trinea.cn 邮箱:trinea.cn#gmail.com 微信:codek2 依赖:trinea-android-common android-auto-scroll-view-pager viewpager-indica

Trinea 1.1k Nov 10, 2022
This is an Image slider with swipes, Here we used Volley to Image load URL's from JSON! Here we make it very easy way to load images from Internet and We customized the description font style(OpenSans).

ImageSliderWithSwipes This is an Image slider with swipes, Here we used Volley to load URL's from JSON! Here we make it very easy way to load images f

Prabhakar Thota 44 May 31, 2021
Android's TextView that can expand/collapse like the Google Play's app description

ExpandableTextView ExpandableTextView is an Android library that allows developers to easily create an TextView which can expand/collapse just like th

Manabu S. 4k Dec 28, 2022
Android common lib demo, include ImageCache, HttpCache, DropDownListView, DownloadManager, install apk silent and so on, you can find description

android-demo 关于我,欢迎关注 微博:Trinea 主页:trinea.cn 邮箱:trinea.cn#gmail.com 微信:codek2 依赖:trinea-android-common android-auto-scroll-view-pager viewpager-indica

Trinea 1.1k Dec 30, 2022
myMaps displays a list of maps, each of which show user-defined markers with a title, description, and location.

My Maps Trevor Carrell myMaps displays a list of maps, each of which show user-defined markers with a title, description, and location. The user can a

null 0 Nov 1, 2021
My Maps displays a list of maps, each of which show user-defined markers with a title, description, and location. The user can also create a new map. The user can save maps and load them in from previous usages of the app.

My Maps Bryant Jimenez My Maps displays a list of maps, each of which show user-defined markers with a title, description, and location. The user can

null 0 Nov 1, 2021
Brief description of the app architecture

Readme App Brief description of the app architecture The application has a simple MVVM architecture based on a single Activity coupled with his own Vi

Alessandro Persiano 0 Nov 2, 2021
An android client application for the awesome kanji learning website wanikani.com

End of Life This project has reached EOL status. It will no longer be updated, patched, or supported. If you are interested in continuing the work, fe

İhsan Işık 507 Nov 12, 2022
A new canvas drawing library for Android. Aims to be the Fabric.js for Android. Supports text, images, and hand/stylus drawing input. The library has a website and API docs, check it out

FabricView - A new canvas drawing library for Android. The library was born as part of a project in SD Hacks (www.sdhacks.io) on October 3rd. It is cu

Antwan Gaggi 1k Dec 13, 2022
💖 "It's showtime!" - Loritta's Content Website

?? Showtime ?? Showtime is Loritta's content website, this project has everything that requires... Server Side Generation, to improve the website SEO.

Loritta 5 Dec 8, 2021
Simple Android web-view-based application. The primary purpose is to show the website in Kiosk mode.

Kiosk mode app Simple Android web-view-based application. The primary purpose is to show the website in Kiosk mode. By default, the app works in Scree

Mykola Kichatov 1 Oct 25, 2022
DevTools for Android Chrome — works on any website, on any Chromium browser.

DevTools for Android Chrome — works on any website, on any Chromium browser.

Leo Ho 135 Dec 7, 2022
Gallery: an Android app developed for displaying images from unsplash website

Gallery App Gallery is an Android app developed for displaying images from unspl

Mohab Ezzat 0 Dec 30, 2021
Android app to show my clone of the Tesla website.

TeslaRoadster Android app to show my clone of the Tesla website. Shows ability to use HTML5 in Android Apps Shows how drawer is implemented Shows embe

Chris Athanas 1 Dec 27, 2021
Explore-KiiT-App - An app to simplify the complicated website navigation and keep track of Attendance

KiiT Explore App "An app to simplify the complicated website navigation and keep

Ajay Khatri 17 Oct 12, 2022