解决 奖励奖励dialog 横屏后不居中问题
This commit is contained in:
parent
d8b43d1082
commit
c90b15a7a2
|
|
@ -113,7 +113,7 @@ open class BindingDialog<VB : ViewBinding>(protected val mActivity: Activity,
|
|||
}
|
||||
setCanceledOnTouchOutside(true)
|
||||
window?.setBackgroundDrawableResource(R.color.transparent)
|
||||
width = (ScreenUtils.getScreenWidth() * 0.8).toInt()
|
||||
width = (Math.min(ScreenUtils.getScreenWidth(), ScreenUtils.getScreenHeight()) * 0.8).toInt()
|
||||
height = WindowManager.LayoutParams.WRAP_CONTENT
|
||||
setWidthHeight()
|
||||
window?.setWindowAnimations(R.style.dialog_alpha)
|
||||
|
|
|
|||
Loading…
Reference in New Issue