0

We are doing an app like Whatsapp, so we show an emoji panel or the soft keyboard. We are using adjustResize as we need to get the soft keyboard's height (in order to ensure that emoji panel has the same height as soft keyboard), everything works fine but, when changing from emoji panel to keyboard we see how the edittext goes to bottom and then goes up with the soft keyboard.

How could we do in order to fix the edittext while the soft keyboard is shown? I've thought about changing from adjustResize to adjustPan on the moment before the keyboard is shown, but then we are getting problems with measuring the keyboard's height (through the ViewTreeObserver). Any idea about how could we solve that issue?

Thanks in advance

Chintan Desai
  • 2,607
  • 2
  • 22
  • 25
FVod
  • 2,245
  • 5
  • 25
  • 52
  • im have similar problem, help me answer this one http://stackoverflow.com/questions/16411056/how-to-adjust-layout-when-soft-keyboard-appears – PeDuCKA Mar 31 '16 at 12:22

1 Answers1

0

Put your layout with view into ScrollView and use adjustPan, in this way you can scroll content when the keyboard show's.

Or you can try:

android:windowSoftInputMode="adjustNothing"
V.Sch
  • 1,078
  • 8
  • 11