EZDialog

Additional

Language
Java
Version
2.0 (Oct 3, 2020)
Created
Mar 29, 2019
Updated
Oct 3, 2020 (Retired)
Owner
Dean Spencer (Binary-Finery)
Contributors
Dean Spencer (Binary-Finery)
Umair Ayub (umairayub79)
2
Activity
Badge
Generate
Download
Source code

EZDialog

  • min SDK 17
  • written in Java

Extremely simple to use and highly customisable alert dialog library

To see this library in action, you can download the demo app from Google Playstore by clicking here

Installation

Add this into your root build.gradle file:

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

Add the dependency to your module build.gradle:

dependencies {
 implementation 'com.github.Binary-Finery:EZDialog:2.0'
}

Example Usage

//build a simple dialog...

new EZDialog.Builder(this)
 .setTitle("EXDialog")
 .setMessage("EZDialog example")
 .setPositiveBtnText("okay")
 .setNegativeBtnText("close")
 .setCancelableOnTouchOutside(false)
 .OnPositiveClicked(new EZDialogListener() {
  @Override
  public void OnClick() {
   //todo
                 }
 })
 .OnNegativeClicked(new EZDialogListener() {
  @Override
                 public void OnClick() {
                  //todo
                    }
                })
 .build();
 
//all available methods

.setTitle(String);
.setMessage(String);
.setPositiveBtnText(String);
.setNegativeBtnText(String) ;
.setNeutralBtnText(String);
.showTitleDivider(boolean);
.setTitleDividerLineColor(int);
.setTitleTextColor(int);
.setMessageTextColor(int);
.setBackgroundColor(int);
.setHeaderColor(int);
.setButtonTextColor(int);
.OnPositiveClicked(EZDialogListener);
.OnNegativeClicked(EZDialogListener);
.OnNeutralClicked(EZDialogListener);
.setAnimation(Animation);
.setCancelableOnTouchOutside(boolean);
.setFont(Font);
.setCustomFont(int);
.build();