I have an EditText, and the word is entered there.
If one word is entered there, one Activity will open,
if another word is entered, another Activity will open.
This will all be implemented with TextWatcher, but I do not know how to put a switch there. Help me please!
|
onTextChangedis what you need. - Yuriy SPb ♦switchin the function you specified? I'm just already interested in myself, the TS asked a rather non-standard question)) so if I do anif, I can imagine how, but I can't think of aswitchthrough theswitch. I've been sitting all evening) - Andrew Goroshkopublic void onTextChanged(s:Editable) { switch(s.toString()) {case "example" : println("example") break;} }- YuriSPb ♦