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

1

1 Answer 1

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"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.