[android-developers] Re: Dialog cannot fill whole screen

2009-09-04 Thread matthias
Hi Dianne, this is what I did, and it didn't work: WindowManager.LayoutParams lp = new WindowManager.LayoutParams(); lp.width = WindowManager.LayoutParams.FILL_PARENT; lp.height = WindowManager.LayoutParams.FILL_PARENT; getWindow().setAttributes(lp); that has no effect whatsoever (I cal

[android-developers] Re: Dialog cannot fill whole screen

2009-09-01 Thread Dianne Hackborn
The dialog theme, as part of its nature, sets the top-level window layout to be WRAP_CONTENT. You could try manually setting the Window layout width and height to FILL_PARENT, though this is going to make for a kind-of weird dialog (especially if one day you find yourself running on a large screen

[android-developers] Re: Dialog cannot fill whole screen

2009-09-01 Thread matthias
Hi, I am also trying to find a solution to this... On Jul 31, 4:41 pm, "nEx.Software" wrote: > Just out of curiosity, why are you using a dialog if you want it to > fill the screen? simply because there are occasions where you need to replace content in the dialog dynamically and you don't want

[android-developers] Re: Dialog cannot fill whole screen

2009-07-31 Thread nEx.Software
Just out of curiosity, why are you using a dialog if you want it to fill the screen? That being said, the content within the dialog will push it to fill the screen if required. Putting things like ListViews with fill_parent seems to do the trick... On Jul 31, 7:33 am, doubleslash wrote: > My dia