How to adjust layout when soft keyboard appears

I would like to adjust/re-size the layout when the soft-keyboard activated, as below:

Before and After:

enter image description hereenter image description here


Found couple resources in SO:

  1. How to keep all fields and texts visible while the soft keyboard is shown
  2. android soft keyboard spoils layout when appears
  3. Adjust layout when soft keyboard is on

But the questions & answers are rather ambiguous, here’s the question with clearer picture of what I want.

Requirements:

  • It should work on phone with any screen sizes.
  • Noticed that the margin/padding space at “FACEBOOK” and “Sign Up for
    Facebook” has changed before and after.
  • No scroll view is involved.

17 Answers
17

Leave a Comment