Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private fun getLoadingDialog(context: Context): AlertDialog {
- val builder = AlertDialog.Builder(context)
- builder.setView(ProgressBar(context))
- builder.setCancelable(false)
- val dialog = builder.create()
- dialog.window!!.decorView.setBackgroundColor(Color.TRANSPARENT)
- return dialog
- }
Advertisement
Add Comment
Please, Sign In to add comment