Thank you, bro. You made my day! However, there is a small issue: when I launch my application, the layout is not fully displayed, and it appears to be shrunk. So, I made some changes in the pop-up function. val window = dialog.window val layoutParams = WindowManager.LayoutParams() layoutParams.copyFrom(window?.attributes) layoutParams.width = WindowManager.LayoutParams.MATCH_PARENT layoutParams.height = WindowManager.LayoutParams.WRAP_CONTENT window?.attributes = layoutParams
@redlion117 Жыл бұрын
i think this is better that use DialogFragment, is more easy and DialogFragment is depreciated in API 23
@poesero6 ай бұрын
hey I'm missing what part is responsable for making the background go darker when the window pop up.
@darkcrow9319 Жыл бұрын
are there any method where the dialog waits until user clicked a button?