Just wondering if there is any best practice on the use of TextWatchers, OnClickListeners and such like with regards to how you put them in code.
Would you do the following:
public void afterTextChanged(Editable s)
public void beforeTextChanged(CharSequence s, int start, int count, int after)
public void onTextChanged(CharSequence s, int start, int before, int count)
and/or even here
Or would it be best to have the TextWatcher etc as a variable and call it like:
I understand the second would be far better for reusability but was curious about if there is only one instance of the, in this example, TextWatcher.