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...).
Post by matthiasHi, I am also trying to find a solution to this...
Post by nEx.SoftwareJust 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 the dialog to resize but
remain at full width and height. For instance, I need to display
images of different width and height in the dialog, and I don't want
the dialog to change size with every image the user looks at.
--
Dianne Hackborn
Android framework engineer
***@android.com
Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails. All such
questions should be posted on public forums, where I and others can see and
answer them.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers-***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---