Add animation to dialog
This commit is contained in:
parent
d1400ff422
commit
6d32900568
1 changed files with 4 additions and 1 deletions
|
@ -181,7 +181,10 @@ class AlertDialogBuilder(private val context: Context) {
|
||||||
dialog.setOnShowListener {
|
dialog.setOnShowListener {
|
||||||
onShow?.invoke()
|
onShow?.invoke()
|
||||||
}
|
}
|
||||||
dialog.window?.setDimAmount(0.8f)
|
dialog.window?.apply {
|
||||||
|
setDimAmount(0.8f)
|
||||||
|
attributes.windowAnimations = android.R.style.Animation_Dialog
|
||||||
|
}
|
||||||
dialog.show()
|
dialog.show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue