in my app has 10 EditText now if i change in any one edittext its add total and show in Textview
but how i do with less code
or i do with all EditText Onchange event for all EditText
I am try to Use TextWatcher to watch all Edit Text but how i get all edittext
private TextWatcher filterTextWatcher = new TextWatcher() {
public void afterTextChanged(Editable s) {
//Do your stuff
String text;
}
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {
// do your stuff
}
public void onTextChanged(CharSequence s, int start, int before,
int count) {
// do your stuff
}
};
plz help