DialogFragment width shrink after specifying FEATURE_NO_TITLE

Use this line in and it will be full width, regardless of the children:

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setStyle(DialogFragment.STYLE_NO_TITLE,
            android.R.style.Theme_Holo_Light_Dialog_NoActionBar_MinWidth);
}

The key is NoActionBar_MinWidth in the theme declaration.


I solve the problem, but I don't like the cause of the problem or the solution.

The problem was this, one of the children views was

<LinearLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"

changing it to

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"

did the trick.