Adjust Dialog size for virtual keyboard

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

Adjust Dialog size for virtual keyboard

Postby sandis84 » Thu Nov 05, 2009 4:55 pm

So I have this Dialog showing that covers the whole screen. When the virtual keyboard pops up, it covers half the Dialog. Is there a way to make the Dialog shrink when this happens? Just give it the height "fill_parent" does not work.
sandis84
Experienced Developer
Experienced Developer
 
Posts: 78
Joined: Fri Aug 07, 2009 3:54 pm

Top

Postby aneuryzma » Sun Jan 17, 2010 8:40 pm

did you solve it ?

thanks
aneuryzma
Developer
Developer
 
Posts: 28
Joined: Wed Jan 06, 2010 10:46 am

Postby sandis84 » Sun Jan 17, 2010 8:41 pm

nope ;_;
sandis84
Experienced Developer
Experienced Developer
 
Posts: 78
Joined: Fri Aug 07, 2009 3:54 pm

Postby qlimax » Sun Jan 17, 2010 11:28 pm

hi
have you looked at this blog post?
http://android-developers.blogspot.com/ ... creen.html
maybe you can find somthing to solve your problem

bye ;)
¯`·.¸¸.><((((º>¯`·.¸¸. ><((((º>
User avatar
qlimax
Master Developer
Master Developer
 
Posts: 271
Joined: Mon Aug 31, 2009 10:54 am
Location: Swiss

Postby sandis84 » Mon Jan 18, 2010 9:40 am

qlimax wrote:hi
have you looked at this blog post?
http://android-developers.blogspot.com/ ... creen.html
maybe you can find somthing to solve your problem

bye ;)


good SIR, thank you! This information was all I needed. I just added this line in the oncreate in my Dialog:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
Parsed in 0.033 seconds, using GeSHi 1.0.8.4


Then the listview in my dialog, and the dialog as a whole, shrinks to an appriopriate size when the virtual keyboard shows.
sandis84
Experienced Developer
Experienced Developer
 
Posts: 78
Joined: Fri Aug 07, 2009 3:54 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests