我的应用程序上有一个edittext,我想要模拟器上的软键盘。但问题是它没有显示键盘。我已经尝试了很多东西,但对我来说并没有用完:-
第一的
InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(tee_tea_edit_text, InputMethodManager.SHOW_IMPLICIT);
第二
已经点击这个
Edit your AVD, add "Keyboard Support" and change the value to no.
Restart your AVD making sure that you wipe user data. Your keyboard will popup now.
有很多东西尝试但对我来说没有用完。
我的avd图片如下:-