如何使用
创建键盘时获取键盘文本值InputMethodManager imm=(InputMethodManager)getSystemService(yourActivity.this.INPUT_METHOD_SERVICE);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
...
答案 0 :(得分:2)
为需要文本值
的视图设置关键侦听器setOnKeyListener(new OnKeyListener() { //Make the view listen for key events
public boolean onKey(View v, int keyCode, KeyEvent event) {
//Your code
return true;
}
});