kolaron

AlertDialog loading

Jan 25th, 2018
1,685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.34 KB | None | 0 0
  1.     private fun getLoadingDialog(context: Context): AlertDialog {
  2.         val builder = AlertDialog.Builder(context)
  3.         builder.setView(ProgressBar(context))
  4.         builder.setCancelable(false)
  5.         val dialog = builder.create()
  6.         dialog.window!!.decorView.setBackgroundColor(Color.TRANSPARENT)
  7.         return dialog
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment