mTextView01 = (TextView) findViewById(R.id.myTextView); mEditText01 = (EditText) findViewById(R.id.myEditText); mEditText01.setOnKeyListener(new EditText.OnKeyListener() { @Override public boolean onKey(View arg0, int arg1, KeyEvent arg2) { // TODO Auto-generated method stub /* 设定TextView显示EditText所输入的内容 */ mTextView01.setText(mEditText01.getText()); return false; } });