Page 1 of 1

Erhöhen Sie die horizontale Größe des Dialogs

Posted: 03 Jan 2025, 09:44
by Guest
Klasse DialogApprove(
context: Context
) : Dialog(context) {

Code: Select all

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)
}
}