Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public Dialog onCreateDialog(final Bundle savedInstanceState) {
- // the content
- final RelativeLayout root = new RelativeLayout(getActivity());
- root.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
- // creating the fullscreen dialog
- final Dialog dialog = new Dialog(getActivity());
- dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
- dialog.setContentView(root);
- dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.WHITE));
- dialog.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
- return dialog;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement