0828zxt

Results 1 comments of 0828zxt

getLocationInWindow 1、设置dialog 全屏 dialog?.window?.apply { // 获取对话框的窗口参数 val params = attributes // 设置宽度和高度为全屏 params.width = WindowManager.LayoutParams.MATCH_PARENT params.height = WindowManager.LayoutParams.MATCH_PARENT // 将窗口参数应用于对话框 attributes = params } 2、getLocationOnScreen 设置attouchview避免走atview获取getLocationInWindow