context: Context
) : Dialog(context) {
Код: Выделить всё
init {
requestWindowFeature(Window.FEATURE_NO_TITLE)
window?.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)
setContentView(R.layout.dialog_approve)
setCanceledOnTouchOutside(false)
window?.setBackgroundDrawableResource(android.R.color.transparent)
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... the-dialog
Мобильная версия