예제 #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);
 }