Change windowSoftInputMode to "adjustPan" instead of the default "adjustResize" 

Change windowSoftInputMode to "adjustPan" instead of the default "adjustResize" 

  

HI, 

I am building a mobile app and have floating content at the bottom of almost each page. When I focus on an inputfield at the page, the keyboard comes up and my floating content is on top of the keyboard and I can't see my input anymore. I don't want this content to be on top but to fall behind the keyboard.

I read this can be solved by changing the windowSoftInputMode to "adjustPan" instead of the default "adjustResize" in the manifest.

Does anyone know how to do this?

Solution

Hi Rosanne,

Although I don't know the answer to your question, I'm wondering whether you can't hide the floating content (using CSS) when the screen height is less than a certain amount?

Solution

Kilian Hekhuis wrote:

Hi Rosanne,

Although I don't know the answer to your question, I'm wondering whether you can't hide the floating content (using CSS) when the screen height is less than a certain amount?

Thanks for the Idea. It works perfectly. 

You're most welcome, glad I could be of help.