简体   繁体   English

Android模拟器没有显示软键盘?

[英]Android emulator not shown soft keyboard?

I have one edittext on my application and i want soft keyboard on emulator. 我的应用程序上有一个edittext,我想在模拟器上使用软键盘。 But problems is its not showing keyboard. 但是问题在于它没有显示键盘。 I have tried so many things but its not use full to me :- 我已经尝试了很多东西,但对我来说还不够用:-

first 第一

InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(tee_tea_edit_text, InputMethodManager.SHOW_IMPLICIT);

second 第二

alredy click on this 单击此

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.

So many things try but not use full to me. 尝试了很多事情,但对我来说用尽了。

How can I make the Android emulator show the soft keyboard? 如何使Android模拟器显示软键盘?

Android 4.0 keyboard issue in emulator.? 模拟器中的Android 4.0键盘问题。

My avd image is below:- 我的AVD图片如下:-

avd图片

Well You can try to Edit your AVD and set both : 好吧,您可以尝试编辑您的AVD并同时设置两者:

Keyboard Lid Support and Keyboard Support to YES Keyboard Lid SupportKeyboard SupportYES

Then restart your AVD. 然后重新启动AVD。 May be it will work. 可能会起作用。

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

Make sure you don't have 确保您没有

       android:textIsSelectable="true"

in your tag in the layout. 在版式的代码中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM