There is an EditText in MainActivity,and There are two EditTexts in PopupWindow,I want to input text in EditText in PopupWindow,but the softkeyboard can not display and so I can not input text.How can I do?
Asked
Active
Viewed 37 times
2 Answers
0
try
editTextName.requestFocus();
0
Seems like a common issue on some phones/android versions. See here for some possible solutions: EditText in PopupWindow not showing keyboard even if setFocusable(true)

Community
- 1
- 1

Evripidis Drakos
- 872
- 1
- 7
- 15
-
Thank you,the issue had been resolved,the function PopupWindow.requestFocus() must be called and the function PopupWindow.setBackgroundDrawable() must be called too.Thank you very much! – user4689328 Apr 03 '15 at 00:59