Skip to content

Instantly share code, notes, and snippets.

@haxzie-xx
Created January 21, 2019 19:02
Show Gist options
  • Select an option

  • Save haxzie-xx/08ef4d292d68dbed8b6da560e35dc79b to your computer and use it in GitHub Desktop.

Select an option

Save haxzie-xx/08ef4d292d68dbed8b6da560e35dc79b to your computer and use it in GitHub Desktop.
@Override
public void onStart() {
super.onStart();
Dialog dialog = getDialog();
if (dialog != null) {
int width = ViewGroup.LayoutParams.MATCH_PARENT;
int height = ViewGroup.LayoutParams.MATCH_PARENT;
dialog.getWindow().setLayout(width, height);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment