Activity background image distorts when you open the keyboard

Asked

Viewed 752 times

0

I’m developing an app that has a background image of the image. But every time I open the virtual keyboard to fill a field, this image is flattened. How do I make it not happen?

inserir a descrição da imagem aqui

inserir a descrição da imagem aqui

1 answer

2


I found a very similar topic in stack overflow in English. According to him, just add this to the Activity in its manifest:

android:windowSoftInputMode="stateVisible|adjustPan"

It seems that the problem is caused by having a ScrollView within the Activity.

  • Is perfectly valid translate a question from Soen, so your answer is not only with a link, that someday may not exist or become unavailable.

  • It’s just that I wasn’t sure I’d answer his question, but noted, it’ll be done next time...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.