Skip to content

Instantly share code, notes, and snippets.

@akbarsha03
Last active May 26, 2017 20:26
Show Gist options
  • Save akbarsha03/b578a377e1c9b05f55d4c90552143779 to your computer and use it in GitHub Desktop.
Save akbarsha03/b578a377e1c9b05f55d4c90552143779 to your computer and use it in GitHub Desktop.
AlertDialog.Builder(this).apply {
setMessage("Kotlin message")
this.setPositiveButton("button 1") { dialog, _ ->
dialog.dismiss()
}
setNegativeButton("button 2") { dialog, _ ->
dialog.dismiss()
}
create()
show()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment