如何触发软键盘? [英] How to Trigger the soft keyboard?
本文介绍了如何触发软键盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能触发软键盘,并添加监听到它的钥匙?
How can I trigger the software keyboard and add listeners to it's keys?
推荐答案
要显示的软键盘,你可以试试: InputMethodManager.showSoftInput()
To display the soft keyboard you might try: InputMethodManager.showSoftInput()
至于添加监听器,最好你能做的就是增加一个 TextChangedListener
到的EditText
听变化的EditText
认为,通过键盘进行。
As for adding listeners, the best you can do is add a TextChangedListener
to an EditText
to listen to the changes in the EditText
view that are made via the keyboard.
这篇关于如何触发软键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文