0

I've created listview with edittext.

if i use android:windowSoftInputMode="adjustPan" in manifest file only ,i able to edit text field.

if not , unable to edit text.

But if i use "adjustpan", the actionbar and toplayout also scroll.

How to prevent the actionbar and toplayout scroll when keyboard open.?

Priyank Gandhi
  • 1,257
  • 1
  • 16
  • 29
RVG
  • 3,538
  • 4
  • 37
  • 64

1 Answers1

0

You can use "adjustResize", and when you notice that the keyboard is shown (link here to know when it occurs), you'd act accordingly.

For example, if you have a chatting app, you could do as was done on WhatsApp and Hangouts, so that if you are on the bottom, you will scroll to the bottom.

Community
  • 1
  • 1
android developer
  • 114,585
  • 152
  • 739
  • 1,270