I am using the the two editext and add the seperate textWatcher classes object
when some one give the focus then second one textListener is remove.
Then
My Question is how to check the textListener is add or remove
thnax in advance
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
AFAIK, There is no method to get the current assigne TextWatcher instance of the EditText object.
Rather you just can do like,
before you assign any
TextWatcherand then assign the Watcher objectmEdiText.addTextChangedListener(new MyTextWatcher());to the EditText in any event or any condition.Assigning
nullwill remove the previous TextWatcher.And to know is it really worked or not, just run your app and test it once.