I am trying to create a DialogFragment with a width of MATCH_PARENT so the dialog is nearly full screen (leaving the padding around the edges for the floating look). I have see
try to switch to RelativeLayout instead of LinearLayout. It worked in my case