Android监听键盘上的确定键等

mETCommentContent.setOnEditorActionListener(new OnEditorActionListener() {
			
			@Override
			public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
				if (actionId == EditorInfo.IME_ACTION_DONE) {
					hideSoftInput();
				}
				return false;
			}
		});


你可能感兴趣的:(android,action)