Skip to content
James de Perio edited this page Aug 16, 2020 · 2 revisions

Dialog.Type

Dialog.Type.DIALOG_NO_INTERNET_CONNECTION
Dialog.Type.DIALOG_WARNING
Dialog.Type.DIALOG_REWARD
Dialog.Type.DIALOG_BASIC
Dialog.Type.DIALOG_ERROR
Dialog.Type.DIALOG_SUCCESS
Dialog.Type.DIALOG_LOADER
Dialog.Type.DIALOG_SEARCH
Dialog.Type.DIALOG_CUSTOM
Dialog.Type.DIALOG_STATIC_IMAGE

Usage

var dialog = Dialog(context = context,type = Dialog.Type.DIALOG_WARNING,isFullScreen = false).apply {
   this.okAction //(customize the ok button)
   this.cancelAction //(customize the cancel button)
   this.title //(customized the title textview)
   this.description //(customize the description textview)
   this.view //(customize the dialog view)
   this.lottie //(customize the lottie animation)
   this.image  //(customize the image if Dialog.Type.DIALOG_STATIC_IMAGE is set)
   this.dialog //(customize the dialog)
}

dialog.show()

Clone this wiki locally