XPopup icon indicating copy to clipboard operation
XPopup copied to clipboard

CenterPopupView弹窗宽度无法占满屏幕

Open fumayer opened this issue 1 year ago • 1 comments

XPopup.Builder(requireContext()) .isDestroyOnDismiss(true) .popupWidth(ScreenUtils.getScreenWidth()) .asCustom( SignInCenterDialog(requireContext()) ).show()

override fun getPopupWidth(): Int {
    return ScreenUtils.getScreenWidth()+1000
}

两种方法都试了,还是无法占满屏幕宽度

fumayer avatar Aug 06 '24 16:08 fumayer

我也发现这个问题,不过文档写了,可以重写getMaxWidth为屏幕宽度resources.displayMetrics.widthPixels image

liuya891012 avatar Sep 10 '24 03:09 liuya891012