'How to listen to a typing stop on the keyboard

I need to search somthing when user stop typing. How can I listen when user stop typing. doAfterTextChanged works vey bad. The interval between stop and search must be less than a second.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source