0
对于我的Android应用程序,我需要在用户单击图像时显示数字键盘,但不显示EditText。 我想在用户按下特定的按键时得到通知,以便我可以适当地处理UI。Android - 显示没有EditText的数字键盘
这怎么办? 谢谢
对于我的Android应用程序,我需要在用户单击图像时显示数字键盘,但不显示EditText。 我想在用户按下特定的按键时得到通知,以便我可以适当地处理UI。Android - 显示没有EditText的数字键盘
这怎么办? 谢谢
尝试......
InputMethodManager inputMethodManager = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);
inputMethodManager.toggleSoftInputFromWindow(imageview_reference.getApplicationWindowToken(), InputMethodManager.SHOW_FORCED, 0);
谢谢!但是关键事件的听众呢? –
我会使用'TextWatcher'来监视。让我看看还有什么。你能给我们一个更好的用例吗?数字是静态的吗?它是动态的 – overflowingStack
http://stackoverflow.com/questions/2261914/catch-keypress-with-android – overflowingStack