EditText in PopupWindow not showing keyboard even if setFocusable(true)

前端 未结 5 929
小鲜肉
小鲜肉 2020-12-17 10:28

I can\'t seem to get this work. I already set popWindow focusable as to what I read on other forums but still no luck.

xml



        
5条回答
  •  感情败类
    2020-12-17 10:44

    Try adding this line before you show the popup:

    popupWindow.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);
    

提交回复
热议问题