Soft keyboard pushes EditView out of sight [solved]

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Soft keyboard pushes EditView out of sight [solved]

Postby metter » Thu May 28, 2009 2:09 pm

Hello

I have yet another problem...

How do I setup elements so that they are not pushed off the screen when the softkeyboard is launched?
I have an editText aligned with "ParentTop", and another on aligned with "ParentBottom". Now when I press the lower one, the top one gets pushed off the screen because the softKeyboard moves everything up.

How can I avoid that?


Thank you.

Cheers
Last edited by metter on Thu May 28, 2009 2:34 pm, edited 1 time in total.
metter
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Jan 06, 2009 2:00 pm

Top

Postby metter » Thu May 28, 2009 2:33 pm

Solved.

If someone else has the same problem:

Use this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);

This sets the window so that it is resized instead of scrolled when the keyboard is shown.


Cheers
metter
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Jan 06, 2009 2:00 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests