Differences between TextWatcher 's onTextChanged, beforeTextChanged and afterTextChanged
In my Android project I have had to add a TextChangedListener (TextWatcher) to a edit text view. And there are three parts in it. onTextChanged beforeTextChanged afterTextChanged What are the differents of these three. I have had to implement a search of a table on the key lisner and for my case all these three looks the same. Also they functioned the same. When I input a part of a product name the table redraws with only those products contains that entered text in it. But I used the afterTextChanged part. My code is EditProduct.addTextChangedListener(new TextWatcher() { @Override public void