For example, the following code:
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
builder.setTitle("foo");
builder.setMessage("bar");
EditText edit = new EditText(activity);
builder.setView(edit);
builder.show();
and a FrameLayout named "customPanel" that holds the EditText
The Space widget has a specified height of 18dp
(which we shall see in a moment) while the FrameLayout has a minimum height of 48dp
which can be seen in the attributes of the Layout Inspector.