New for programming, now for android. Therefore, I hope that I will not greatly annoy you.
How can I configure the onkeylistener setting at the top level of the application that captured the keyevent no matter what.
Basically, I have a linear layout with dynamically added edittext. I want to capture the key event Enter and get it in the current editor, run some tests, then create a new edittext and add it to the layout.
I know that I can (and have) implement an onkeylistener for individual child views, but without being a programmer, the logic seems strange to create an edittext that listens for input to create another edittext that listens for input to create another ... (you see where it happens)
Can someone point me in the right direction? I have more information about what I'm trying to do, I just donβt know what is appropriate and what is not, so let me know if you need more.
Thanks for your time in advance, Chris
chris source share