showing only part of the screen when the android keyboard is active

Asked

Viewed 75 times

1

I have the following screen on android inserir a descrição da imagem aqui

and would like that when the user clicked on one of editText, only the 3 fields (name, date of birth and phone) were shown at the top of the screen (above the keyboard). These components are separated on the screen by a Linearlayout with its own id. Is there any way to do that without creating another Activity over that?

  • I believe that the Webview of Android is responsible for adjust and push the components up to show the EditText and the keyboard only. Android makes automatic so that a phone with a very low resolution does not force the user to write something without seeing what he is writing, in your case write the field Name without seeing what you’re writing by showing the Date of birth and the Telephone plus the keyboard underneath...

  • I do not put this in the answer because I do not know which component of Android is responsible for doing this

1 answer

1


I usually encapsulate a ScrollView and a LinearLayout. I don’t know how it’s in your code.

<ScrollView>
     <LinearLayout>
         //Seu código aqui
     </LinearLayout>
</ScrollView>

Browser other questions tagged

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