Alert Dialog in kotlin
alert("Testing alerts") {
title = "Alert"
yesButton { toast("Yess!!!") }
noButton { }
}.show();
alert("Testing alerts") {
title = "Alert"
positiveButton("Cool") { toast("Yess!!!") }
negativeButton("Never Ever") { }
neutralButton("I'll think about it")
}.show();
alert {
title = "Alert"
positiveButton("Cool") { toast("Yess!!!") }
customView {
linearLayout {
textView("I'm a text")
button("I'm a button")
padding = dip(16)
}
}
}.show();
Progress dialog
indeterminateProgressDialog("This a progress dialog").show();
May be this will help to Android Developers. |
No comments:
Post a Comment