Progress Dialog in Kotlin?

4447 views.

How to create Progress dialog in Kotlin?

Add Comment
1 Answer(s)
2354 views.

val dialog= ProgressDialog(this)
 dialog.setMessage("Please wait")
 dialog.setTitle("Loading")
 dialog.setCancelable(false)
 dialog.isIndeterminate=true
 dialog.show()
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.