2015-10-24 56 views

回答

0

尝试......

InputMethodManager inputMethodManager = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE); 
inputMethodManager.toggleSoftInputFromWindow(imageview_reference.getApplicationWindowToken(),  InputMethodManager.SHOW_FORCED, 0); 
+0

谢谢!但是关键事件的听众呢? –

+0

我会使用'TextWatcher'来监视。让我看看还有什么。你能给我们一个更好的用例吗?数字是静态的吗?它是动态的 – overflowingStack

+0

http://stackoverflow.com/questions/2261914/catch-keypress-with-android – overflowingStack