I\'ve got an EditText that is SLOW to respond when typing. The lag is annoying enough to cause me to find a solution. I did some research and found an SO thread EditText laggi
When you typing text, the onTextChanged
is called again and again, so you are starting an new thread (EditTextWatcherTask
) again and again. It will consume many resource of the system.
As well thread is for the task that need many time to finish it, so in your situation, you don't need a thread, remove the task, just put the computation code in the onTextChanged
.