XPopup icon indicating copy to clipboard operation
XPopup copied to clipboard

View内部有EditText,如何做到键盘不自动弹起

Open mengchaoshen opened this issue 1 year ago • 2 comments

XPopup版本 2.8.0

手机系统和型号 小米mix4

描述你的问题 View内部有EditText,如何做到键盘不自动弹起

mengchaoshen avatar Jul 22 '22 09:07 mengchaoshen

看文档设置下

junixapp avatar Jul 24 '22 14:07 junixapp

文档内的autoOpenSoftInput(false)不起作用,最后是用attachPopupView.dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);解决的。需要在attachPopupView.show之后调用。

mengchaoshen avatar Jul 25 '22 01:07 mengchaoshen