if you want to make height and width on your own way than make custom class extend dialog like below
public class AlertCustomDialog extends Dialog {
public AlertCustomDialog(final Context context, Event e) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(/*your layout*/);
setCancelable(true);
}
}
and call
new AlertCustomDialog(context, e).show();
when you need
otherwise you can define Activity and put code in manifest like below:
<activity android:name="/*your activity name*/"
android:theme="@android:style/Theme.Dialog"
android:configChanges="orientation|keyboardHidden" />