Skip to content
Advertisement

Tag: onchange

android on Text Change Listener

I have a situation, where there are two fields. field1 and field2. All I want to do is empty field2 when field1 is changed and vice versa. So at the end only one field has content on it. It works fine if I attach addTextChangedListener to field1 only, but when I do it for both fields the app crashes. Obviously

Advertisement