android软体键盘实现-- 断点记录
实现功能 下面的拨号部分
实现原理:
1.地下是一个Popupwindow(里面填充多个ImageView)
2. 每个ImageView点击的时候. 触发 onKeyDown和onKeyUp
int keyCode =KeyEvent.KEYCODE_DEL; //这里是退格键
KeyEvent keyEventDown = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode);
KeyEvent keyEventUp = new KeyEvent(KeyEvent.ACTION_UP, keyCode);
editNumber.onKeyDown(keyCode, keyEventDown); // editNumber 是ImageView
editNumber.onKeyUp(keyCode, keyEventUp);
作者“泪落尘烟”
补充:移动开发 , Android ,