Thursday, March 8, 2012

[android-developers] TOUCHABLE_INSETS_FRAME on landscape orientation causes fields to be untouchable

Hello,

I have been working on my custom IME for the past few weeks now. My goal wat to make a soft keyboard that will not pan or resize the UI behind it. To do this, I implemented/override the onComputeInsets method for InputMethodService. There, I set outInsets.visibleTopInsets to the display height and outInsets.touchableInsets to InputMethodService.Insets.TOUCHABLE_INSETS_FRAME. This delivers the expected result - a soft keyboard that covers the UI behind it without panning or resizing the background UI. However, I notice that other input fields (EditText widgets) are not touchable when my soft keyboard is displayed. This problem only happens when my emulator is in landscape orientation. Otherwise, when it is in portrait, everything seems fine. Other input fields can be touched.

Does someone know why it behaves this way?
Hoping to hear from someone,
Thanks and best regards,
- tsukishiro

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate