Hi,
I'm trying to convince an EditText
-view to only use the SoftKeyboard that I wrote. It's bugging me for a few days already and I can't believe that this isn't possible to do. I might not see the obvious...
So far I managed to write my own SoftKeyboard based on the sample that comes with the Android SDK. I'm able to manually select it as the input method (long click, input method, *pick*). The SoftKeyboard then works fine and does everything I want. I also cleaned up the context menu to disallow changing the input method (obviously I currently needed it to be in the menu otherwise I wouldn't be able to choose my SoftKeyboard).
In other words the only thing left is to tie the SoftKeyboard to the EditText
.
I noticed the bunch of ime*
-attributes on the EditText
, but they don't seem to be useful for my problem as I don't want to change anything about the action key. inputMethod
requires a KeyListener
, which the SoftKeyboard is not (I tried to make it one, but there seems to be a problem with the class-loader as it wouldn't find my class => ClassNotFoundException
).
Can anyone please point me to some useful information?