Code example for DialogFragment

Methods: onCreateDialog

0
 
        @Override 
        public Dialog onCreateDialog(Bundle savedInstanceState) {
            transcript.add("onCreateDialog");
            return returnThisDialogFromOnCreateDialog == null
                    ? super.onCreateDialog(savedInstanceState)
                    : returnThisDialogFromOnCreateDialog;
        } 
 
        @Override 
        public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
            transcript.add("onCreateView");
            return inflater.inflate(R.layout.main, null);
        } 
 
        @Override 
        public void onViewCreated(View view, Bundle savedInstanceState) {
            transcript.add("onViewCreated");
            super.onViewCreated(view, savedInstanceState);
        }