Code example for DialogFragment

Methods: onCreateDialog

0
	public Dialog onCreateDialog(Bundle savedInstanceState) {
		// The only reason you might override this method when using onCreateView() is 
		// to modify any dialog characteristics. For example, the dialog includes a 
		// title by default, but your custom layout might not need it. So here you can 
		// remove the dialog title, but you must call the superclass to get the Dialog. 
		Dialog dialog = super.onCreateDialog(savedInstanceState);
		dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
		return dialog;
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE