I have this for sho alert Dialog
val adBuilder = AlertDialog.Builder(view.context)
val alertDialog = adBuilder.setCancelable(false)
.setView(R.layout.addnewwpos)
.setNegativeButton("CANCEL") {
dialogInterface, _ -> dialogInterface.cancel()
ZUtils.hideKeyBoard(view, inputMethodManager)
MainActivity.showDialogAddPositionOpen = false
}
.setPositiveButton("OK", null)
.create()
alertDialog.show()
alertDialog.window?.clearFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE)
how to get view to alertdialog?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 489 |
Nodes: | 16 (2 / 14) |
Uptime: | 53:50:27 |
Calls: | 9,673 |
Calls today: | 4 |
Files: | 13,719 |
Messages: | 6,170,782 |