I have a created an EditText. I can know text change using TextChangedListener. But I have a problem that I have to show some message to the user when the user has finished writing. to achieve this i am assuming that if the user is idle for 500 milliseconds that means the user has finished writing. How to achieve this? is there any better way to know text completion?
Thanks
in
TextChangedListeneryou can start a timer and restart it each timeonTextChangedListener()method is called. and set its time to be 500milliSeconds. and when timer ends you can show your message.when i say Timer use CountDownTimer which has
onFinish()method which you can override and do your stuff…and also if you have multiple views then you can use onFocusChangedListener(), whose method is called once user jumps to next TextView, which is better approach too..