EditText text changed java Android

Google Android example source code – is text changed in EditText ?

EditText hEditText;
// TextChanged in onCreate
hEditText = (EditText)findViewById(R.id.idEditText);
hEditText.addTextChangedListener(new TextWatcher() {
	public void afterTextChanged(Editable str) {
	}
 
	public void beforeTextChanged(CharSequence s, int start, int count,
			int after) {
	}
 
	public void onTextChanged(CharSequence sq, int start, int before,
			int count) {
	}
});
This entry was posted in Android Examples Code and tagged , , , . Bookmark the permalink.


Comments are closed.

7,440 views