An application does not have a dialog box to confirm an event. This library is designed in a way that makes it easy for the developer to use a dialog box to confirm a specific event with a good and comfortable design, where you can modify what you want on the design to suit the shape of your application design.


Alt text

Alt text


Add it in your root build.gradle at the end of repositories:

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

Add the dependency :

implementation 'com.github.abuanzeh:CustomConfirmDialog:1.0.2'


	    //set Title
            .setTitle("Delete Item")
            .setSubTitle("Are Your sure you want\ndelete this item?")
	    //set Cancel Button Title
	    //set Confirm Button Title
	    //set if user can dismiss dilog true or false 
	     //handle Clickes Buttons
            .setDialogButtonsCallBack(object : ConfirmDialogCallBack {
                override fun handleClickConfirmButton() {}

                override fun handleClickCancelButton() {}

                override fun handleWhenDialogDismiss() {}

	    //set Main Color 
	    //set Custom Color
	    //set Corner Buttons Radius 
	    //set Corner background Dialog 
	    //setDialog Background


View Github