code: @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState)
      {
          int theme = getArguments().getInt("theme");
          int initialYear = getArguments().getInt("year");
          int initialMonth = getArguments().getInt("month");
          int initialDay = getArguments().getInt("day");
          Date minDate = (Date) getArguments().getSerializable("minDate");
          Date maxDate = (Date) getArguments().getSerializable("maxDate");
  
          // Unless we inflate using a cloned inflater with a Holo theme,
          // on Lollipop devices the DatePicker will be the new-style
          // DatePicker, which is not what we want. So we will
          // clone the inflater that we're given but with our specified
          // theme, then inflate the layout with this new inflater.
  
          Context contextThemeWrapper = new ContextThemeWrapper(
                  getActivity(),
                  theme == DateTimePicker.HOLO_DARK ?
                           android.R.style.Theme_Holo :
                           android.R.style.Theme_Holo_Light);
  
          LayoutInflater localInflater = inflater.cloneInContext(contextThemeWrapper);
  
          View v = localInflater.inflate(R.layout.hlklib_date_time_picker_fragment_date, container, false);
  
          mDatePicker = (CustomDatePicker) v.findViewById(R.id.hlklib_datetimepicker_date_picker);
          // block keyboard popping up on touch
          mDatePicker.setDescendantFocusability(DatePicker.FOCUS_BLOCK_DESCENDANTS);
          mDatePicker.init(
              initialYear,
              initialMonth,
              initialDay,
              new OnDateChangedListener() {
  
                  @Override
                  public void onDateChanged(DatePicker view, int year,
                          int monthOfYear, int dayOfMonth)
                  {
                      mCallback.onDateChanged(year, monthOfYear, dayOfMonth);
                  }
              });
  
          if (minDate != null)
              mDatePicker.setMinDate(minDate.getTime());
  
          if (maxDate != null)
              mDatePicker.setMaxDate(maxDate.getTime());
  
          return v;
      }
docs: Create and return the user interface view for this fragment.