advanceddialogview/src/main/java/dev/nurujjamanpollob/uicollection/advanceddialogview/AdvancedDialogView.java
// Method to dismiss Dialog when clicked outside
Method to dismiss Dialog when clicked outside
Method to dismiss Dialog when clicked outside
private void cancelDialogOnClickOutside() {
        rootView.setOnClickListener(v -> {
            if (cancelDialogOnClickOuside) {
                onBackPressed();
            }
        });
    }
private void cancelDialogOnClickOutside ( ) { rootView . setOnClickListener ( v -> { if ( cancelDialogOnClickOuside ) { onBackPressed ( ) ; } } ) ; }
Method to dismiss Dialog when clicked outside
Method to dismiss Dialog when clicked outside