How can I do something, 0.5 second after text changed in my EditText?
问题 I am filtering my list using an EditText. I want to filter the list 0.5 second after user has finished typing in EditText . I used the afterTextChanged event of TextWatcher for this purpose. But this event rises for each character changes in EditText. What should I do? 回答1: editText.addTextChangedListener( new TextWatcher() { @Override public void onTextChanged(CharSequence s, int start, int before, int count) { } @Override public void beforeTextChanged(CharSequence s, int start, int count,