Good afternoon!
I'm starting Java studies and I came to this topic. How do I call the insert
method on the side of Activity
, passing the EditText
required field?
public static TextWatcher insert(final EditText editText){
return new TextWatcher() {
...
public void onTextChanged(CharSequence cs, int start, int before, int count){
editText.setText("Qualquer coisa");