I have an Activity with a dialog theme ( Theme.Holo.DialogWhenLarge). It seems too narrow, and I would like it to fill a larger percentage of the screen. I am trying to accomplish this by overriding windowMinWidthMinor and windowMinWidthMajor .
The theme used by my activity is as follows:
<style name="MyTheme" parent="@android:style/Theme.Holo.DialogWhenLarge">
<item name="android:windowMinWidthMajor">90%</item>
<item name="android:windowMinWidthMinor">90%</item>
</style>
However, it seems that windowMinWidthMajor, and windowMinWidthMinordo not act. Can anyone explain what I'm doing wrong?
source
share