View.onkeylistener For Soft Keyboard
I am using the View.OnKeyListener for EditText to do something when some special keys are pressed/touched. Here is a shorthened version of the code: public class MyKeyListener impl
Solution 1:
It's not guaranteed, you can't.
You can use a TextWatcher
and attach that to any and all EditTexts.
Or, you create your own KeyboardView
and force the user to use that one, then you can attach the expected listeners to it. https://developer.android.com/guide/topics/text/creating-input-method.html?hl=ja#IMEUI
Post a Comment for "View.onkeylistener For Soft Keyboard"