Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Custom KeyboardView not displaying correctly
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Matthew Williams  
View profile  
 More options Oct 4 2012, 5:29 pm
From: Matthew Williams <43.matt...@gmail.com>
Date: Thu, 4 Oct 2012 14:29:14 -0700 (PDT)
Local: Thurs, Oct 4 2012 5:29 pm
Subject: Custom KeyboardView not displaying correctly

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

  keyboard drawn over.png
104K Download

  landscape to portrait.png
79K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.