我的应用程序上有一个编辑文本,我想在模拟器上使用软键盘。但问题是它没有显示键盘。 我已经尝试了很多东西,但对我来说并没有用完:-
首先
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.
很多东西都尝试了但对我来说没有用完。
How can I make the Android emulator show the soft keyboard?
Android 4.0 keyboard issue in emulator.?
我的avd图片如下:-
最佳答案
好吧,您可以尝试编辑您的 AVD 并设置两者:
Keyboard Lid Support
和 Keyboard Support
为 YES
然后重新启动您的 AVD。也许它会奏效。
关于安卓模拟器不显示软键盘?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15445583/