Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/215.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android仿真器未显示软键盘?_Android_Keyboard - Fatal编程技术网

Android仿真器未显示软键盘?

Android仿真器未显示软键盘?,android,keyboard,Android,Keyboard,我的应用程序上有一个edittext,我希望emulator上有软键盘。但问题是它没有显示键盘。 我尝试了很多东西,但都没有完全发挥作用:- 首先 InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.showSoftInput(tee_tea_edit_text, InputMethodManager.SHOW_IMPLICIT); 秒 点击这个 Ed

我的应用程序上有一个edittext,我希望emulator上有软键盘。但问题是它没有显示键盘。 我尝试了很多东西,但都没有完全发挥作用:-

首先

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图像如下:-


您可以尝试编辑AVD并同时设置:

键盘盖支架
键盘支架


然后重新启动AVD。它可能会工作。

转到Android虚拟设备,选择您的Decision并取消选中显示“硬件键盘存在”的复选框,然后重新启动AVD,确保您没有

       android:textIsSelectable="true"

在布局中的标签中。

您可以取消选中显示“硬件键盘存在”的复选框,然后重新启动AVD。