I have, so far unsuccessfully, been able to stop the keyboard from coming up in my face.
I have used the methods such as using the IME.HideKeyboard from a Focus Event, and from a Click event also at the same time. The keyboard just keeps coming back.
I found evidence out on the web that if you could just set the EditText.SetKeyListener(Null)... the keyboard would be gone; but the ability to copy and paste would remain.
Since that is exactly what I want to happen. I have been trying, rather desperately, to try and get at the EditText.SetKeyListener instance and set it to null.
I would guess it to be a quite easy thing if I actually knew what I was doing.
I should be able to get there one of three ways (none of which are working).
With the IME library, with the Reflector library, or with the Java library.
...
I found this code, which seems to be quite close to what I need to grab...
Dim obj1 As Reflector
obj1.Target = edt
obj1.RunMethod2("setFocusable", "False", "java.lang.boolean")
In my case it should be more like:
Dim RemoveKeyListener as Reflector
RemoveKeyListener.Target = EditTextWBLesson
RemoveKeyListener.RunMethod2("setKeyListener","Null","java.lang.Object")
(Although it would seem that it would really be more like:
java.awt.event.KeyListener
Secondarily... if I were to use the IME library, possibly the
IME.AddHandleActionEvent(EditText)
coupled with a:
Sub IME_HandleAction As Boolean
End Sub
With some manipulation either before, or after with
RunMethod2("",etc
might work.
Anybody much smarter than I am have any thoughts?
I have used the methods such as using the IME.HideKeyboard from a Focus Event, and from a Click event also at the same time. The keyboard just keeps coming back.
I found evidence out on the web that if you could just set the EditText.SetKeyListener(Null)... the keyboard would be gone; but the ability to copy and paste would remain.
Since that is exactly what I want to happen. I have been trying, rather desperately, to try and get at the EditText.SetKeyListener instance and set it to null.
I would guess it to be a quite easy thing if I actually knew what I was doing.
I should be able to get there one of three ways (none of which are working).
With the IME library, with the Reflector library, or with the Java library.
...
I found this code, which seems to be quite close to what I need to grab...
Dim obj1 As Reflector
obj1.Target = edt
obj1.RunMethod2("setFocusable", "False", "java.lang.boolean")
In my case it should be more like:
Dim RemoveKeyListener as Reflector
RemoveKeyListener.Target = EditTextWBLesson
RemoveKeyListener.RunMethod2("setKeyListener","Null","java.lang.Object")
(Although it would seem that it would really be more like:
java.awt.event.KeyListener
Secondarily... if I were to use the IME library, possibly the
IME.AddHandleActionEvent(EditText)
coupled with a:
Sub IME_HandleAction As Boolean
End Sub
With some manipulation either before, or after with
RunMethod2("",etc
might work.
Anybody much smarter than I am have any thoughts?