views:

501

answers:

2

Hi,

I would like to create a dialog-style form which would fill the bigger screen area (left, right, top, bottom padding 10px).

I defined the style "CupCakeDialog" the following way:

<style name="CupcakeDialog" parent="android:Theme.Dialog">
    <item name="android:windowAnimationStyle">@null</item>
</style>

and by running the activity:

getWindow().requestFeature(Window.FEATURE_PROGRESS);
getWindow().requestFeature(Window.FEATURE_NO_TITLE);

setContentView(R.layout.ad_popup);

The dialog is displayed the following way:

alt text

Does anyone know how to make the dialog bigger (extend height)?

Thank you!

+1  A: 

As you're providing a custom layout for the dialog, you should just be able to provide top and bottom padding as normal around the text.

Christopher
A: 

This is now answered here.

Pierre-Luc Paour