3

I'm creating an app where users can click on a tab and soft keyboard will be shown programmatically. However, I don't want to display the soft keyboard if it's going to cover the whole screen (like extracted EditText) like this:

enter image description here

Detecting screen orientation might help, but AFAIK on tablets, the soft keyboard won't cover the whole screen even on landscape. So is there any other way?

Randy Sugianto 'Yuku'
  • 71,383
  • 57
  • 178
  • 228
  • I don't think this is possible. After the keyboard has popped it might be possible to determine wether some of your own views are visible, but since the user can install different keyboards(like swiftkey) with different sizes, it gets difficult to know beforehand. – Nino van Hooff Aug 24 '12 at 09:07

1 Answers1

1

Not sure if it will work for you, but maybe you can disable fullscreen soft input instead of figuring out the detection part.

Community
  • 1
  • 1
Joe
  • 14,039
  • 2
  • 39
  • 49