EZDialog

Additional

Language
Java
Version
1.0.5 (Apr 9, 2019)
Created
Mar 30, 2019
Updated
Apr 9, 2019
Owner
Dean Spencer (Binary-Finery)
Contributor
Dean Spencer (Binary-Finery)
1
Activity
Badge
Generate
Download
Source code

Promotion

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:1.0.4'
}

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();