Hi,
Please see the original version of my post on StackOverflow<http://stackoverflow.com/questions/12718602/custom-softkeyboard-view-...>.
All my code is there, so in the interests of not duplicating, I won't
repost it here.
I supplemented the LatinKeyboard given in the SoftKeyboard sample code by
attaching two vertical LinearLayouts on either side, on top of the
original KeyboardView. The problem is that when I select inside the
EditText and onCreateInputView(...) is called from the InputMethodService,
the EditText inside which I selected is not properly shifted upwards to
make room for the CustomKeyboardView(default behaviour). Instead,
the CustomKeyboardView is drawn directly over it, as you can see in the
first attached image.
If I rotate the phone into landscape and then back into portrait, I get
what you see in the second attached image, where it seems that the original
views (EditText, etc) are pushed above the entire CustomKeyboardView setup,
including the LinearLayout columns on the sides.
Although the textbox and original content has been displaced above my
CustomKeyboardView, touch events inside the EditText are no longer
detected, and I can't do things like move the cursor, select text, and so
on.
1) Is there a way to get my two LinearLayout columns to hang out above the
keyboard, and be drawn above the original content, peacefully - without the
content being displaced above them, I mean.
2) Is there a way or something that I'm missing that will allow me to have
the original EditText functionality returned? I need to be able to
manipulate the cursor inside of the EditText.
Thanks a lot,
Matthew