コード例 #1
0
 private void onDeleteAll() {
   final Editable digits = mEditText.getText();
   if (digits != null) digits.clear();
 }
コード例 #2
0
 private void keyPressed(int keyCode) {
   KeyEvent event = new KeyEvent(KeyEvent.ACTION_DOWN, keyCode);
   mEditText.onKeyDown(keyCode, event);
 }