I am working on an android application where I am using DialogFragment to display the dialog but its width is very small. How I can make this width to fil
use this in onCreateView method of DialogFragment
Display display = getActivity().getWindowManager().getDefaultDisplay();
int width = display.getWidth();
int px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, **220**, getResources().getDisplayMetrics());
getDialog().getWindow().setLayout(width,px);
220 is dialog fragment height, change it as u wish