Skip to content
Compare
Choose a tag to compare
@hamzaali6307 hamzaali6307 released this 18 Jun 22:14
· 3 commits to develop since this release
8be6286

Code Lab sample:

/*.. string value for in capital words or use my lib constant object Constants

use this for image in dialog.. const val SUCCESS = "SUCCESS" const val FAILURE = "FAILURE" const val DEFAULT = "DEFAULT" ..*/

MaterialDialog.Builder(this).apply {
setTitle("Pop-Up Title")
setMessage("Message goes here")
setCancelable(true)
setDialogTypeImage(SUCCESS)
setPositiveButton("Blue Button") {
Log.e("TAG", "Positive")
}
setNegativeButton("Red Button") {
Log.e("TAG", "Negative")
}
setNeutralButton("Gray Button") {
Log.e("TAG", "Neutral")
}
show()
}