Code example for DialogFragment

Methods: onCreateDialog

0
			pictures = args.getStringArray("pictures");
		} 
		 
		@Override 
		public Dialog onCreateDialog(Bundle savedInstanceState) {
			Dialog dlg = super.onCreateDialog(savedInstanceState);
			dlg.setTitle(name);
			return dlg;
		} 
		 
		@Override 
		public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
		{ 
			View view = inflater.inflate(R.layout.delivery_menu_item_detail, container, false);
			if(detail == null)
				view.findViewById(R.id.note).setVisibility(View.GONE);
			else 
				((TextView)view.findViewById(R.id.note)).setText(detail);
			if(pictures == null)
				view.findViewById(R.id.pictures).setVisibility(View.GONE);
			else