How to selectively scale a fragment when the keyboard is activated in Android?

Situation

 -------------------------------------
|    Fragment1     |    Fragment2     |
|                  |                  |
|    (EditText)    |                  |
 -------------------------------------

My layout contains two simple fragments next to each other in a horizontalLinearLayout orientation .

Fragment 1 contains EditTextbelow. Fragment2 may contain any ..

When I click on my focus EditTextin Fragment1, the SoftKeyboard flips around the screen or adjusts / pans Window Activityas defined windowSoftInputModefor that Activityin Manifest.

purpose

Whenever SoftKeyboard is activated, I only want Fragment1 to scale so that my EditText remains visible on top of my SoftKeyboard, but I don’t want Fragment2 to be scaled or adjusted in any way,

- ?

+3

All Articles