1

I have a RelativeLayout with an EditText and a Button in it.

When the keyboard opens, the layout is pushed up to show the EditText above the keyboard, but it's not enough to bring up the Button to prevent it from hiding under the keyboard.

Is it possible to move the layout up more, or somehow prevent it from being under the keyboard?

Thanks

Miro Markaravanes
  • 3,285
  • 25
  • 32

1 Answers1

1

A similar question has been answered here: Android soft keyboard covers edittext field

Ideally you will be able to use windowSoftInputMode to control how your Activity is moved around when the soft keyboard is displayed.

Community
  • 1
  • 1
Ben Jakuben
  • 3,147
  • 11
  • 62
  • 104
  • Thanks for the answer. The behavior itself is right. The amount of scroll needs to be somehow increased. – Miro Markaravanes Mar 06 '14 at 02:41
  • Could you add some buffer below your Button that would force the layout to move up even higher? Perhaps a transparent View set to a certain height? – Ben Jakuben Mar 06 '14 at 04:09
  • 1
    There was a famous android bug in the app. When the app is in immersive full screen mode, the keyboard pushing is messed up. If you disable the full screen, everything works fine.. – Miro Markaravanes Apr 13 '14 at 08:27
  • @MiroMarkaravanes are you aware of a fix for that or a way around for the apps being in full screen? Thanks! – commandantp Jan 07 '15 at 10:32
  • @commandantp I haven't found any solution for that yet. But I suppose Google might have patched that for KitKat or Lollipop. – Miro Markaravanes Jan 08 '15 at 05:58