caldroid/src/main/java/com/roomorama/caldroid/CaldroidFragment.java
protected void retrieveInitialArgs() {
		// Get arguments
		Bundle args = getArguments();
		if (args != null) {
			// Get month, year
			month = args.getInt(MONTH, -1);
			year = args.getInt(YEAR, -1);
			dialogTitle = args.getString(DIALOG_TITLE);
			Dialog dialog = getDialog();
			if (dialog != null) {
				if (dialogTitle != null) {
					//dialog.setTitle(dialogTitle);
					customTitle.setText(dialogTitle);
				} else {
					// Don't display title bar if user did not supply
					// dialogTitle
					//dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
					customTitleBar.setVisibility(View.GONE);
				}
			}

			// Get start day of Week. Default calendar first column is SUNDAY
			startDayOfWeek = args.getInt(START_DAY_OF_WEEK, 1);
			if (startDayOfWeek > 7) {
				startDayOfWeek = startDayOfWeek % 7;
			}

			// Should show arrow
			showNavigationArrows = args
					.getBoolean(SHOW_NAVIGATION_ARROWS, true);

			// Should enable swipe to change month
			enableSwipe = args.getBoolean(ENABLE_SWIPE, true);

			// Get sixWeeksInCalendar
			sixWeeksInCalendar = args.getBoolean(SIX_WEEKS_IN_CALENDAR, true);

			// Get clickable setting
			enableClickOnDisabledDates = args.getBoolean(
					ENABLE_CLICK_ON_DISABLED_DATES, false);

			// Get disable dates
			ArrayList<String> disableDateStrings = args
					.getStringArrayList(DISABLE_DATES);
			if (disableDateStrings != null && disableDateStrings.size() > 0) {
				disableDates.clear();
				for (String dateString : disableDateStrings) {
					DateTime dt = CalendarHelper.getDateTimeFromString(
							dateString, "yyyy-MM-dd");
					disableDates.add(dt);
				}
			}

			// Get selected dates
			ArrayList<String> selectedDateStrings = args
					.getStringArrayList(SELECTED_DATES);
			if (selectedDateStrings != null && selectedDateStrings.size() > 0) {
				selectedDates.clear();
				for (String dateString : selectedDateStrings) {
					DateTime dt = CalendarHelper.getDateTimeFromString(
							dateString, "yyyy-MM-dd");
					selectedDates.add(dt);
				}
			}

			// Get min date and max date
			String minDateTimeString = args.getString(MIN_DATE);
			if (minDateTimeString != null) {
				minDateTime = CalendarHelper.getDateTimeFromString(
						minDateTimeString, null);
			}

			String maxDateTimeString = args.getString(MAX_DATE);
			if (maxDateTimeString != null) {
				maxDateTime = CalendarHelper.getDateTimeFromString(
						maxDateTimeString, null);
			}

		}
		if (month == -1 || year == -1) {
			DateTime dateTime = DateTime.today(TimeZone.getDefault());
			month = dateTime.getMonth();
			year = dateTime.getYear();
		}
	}
/**
	 * Retrieve initial arguments to the fragment Data can include: month, year,
	 * dialogTitle, showNavigationArrows,(String) disableDates, selectedDates,
	 * minDate, maxDate
	 */
Retrieve initial arguments to the fragment Data can include: month, year,
dialogTitle, showNavigationArrows,(String) disableDates, selectedDates,
minDate, maxDate
Retrieve initial arguments to the fragment Data can include : month year dialogTitle showNavigationArrows ( String ) disableDates selectedDates minDate maxDate
protected void retrieveInitialArgs() {
		Bundle args = getArguments();
		if (args != null) {
			month = args.getInt(MONTH, -1);
			year = args.getInt(YEAR, -1);
			dialogTitle = args.getString(DIALOG_TITLE);
			Dialog dialog = getDialog();
			if (dialog != null) {
				if (dialogTitle != null) {
					customTitle.setText(dialogTitle);
				} else {
					customTitleBar.setVisibility(View.GONE);
				}
			}
			startDayOfWeek = args.getInt(START_DAY_OF_WEEK, 1);
			if (startDayOfWeek > 7) {
				startDayOfWeek = startDayOfWeek % 7;
			}
			showNavigationArrows = args
					.getBoolean(SHOW_NAVIGATION_ARROWS, true);
			enableSwipe = args.getBoolean(ENABLE_SWIPE, true);
			sixWeeksInCalendar = args.getBoolean(SIX_WEEKS_IN_CALENDAR, true);
			enableClickOnDisabledDates = args.getBoolean(
					ENABLE_CLICK_ON_DISABLED_DATES, false);
			ArrayList<String> disableDateStrings = args
					.getStringArrayList(DISABLE_DATES);
			if (disableDateStrings != null && disableDateStrings.size() > 0) {
				disableDates.clear();
				for (String dateString : disableDateStrings) {
					DateTime dt = CalendarHelper.getDateTimeFromString(
							dateString, "yyyy-MM-dd");
					disableDates.add(dt);
				}
			}
			ArrayList<String> selectedDateStrings = args
					.getStringArrayList(SELECTED_DATES);
			if (selectedDateStrings != null && selectedDateStrings.size() > 0) {
				selectedDates.clear();
				for (String dateString : selectedDateStrings) {
					DateTime dt = CalendarHelper.getDateTimeFromString(
							dateString, "yyyy-MM-dd");
					selectedDates.add(dt);
				}
			}
			String minDateTimeString = args.getString(MIN_DATE);
			if (minDateTimeString != null) {
				minDateTime = CalendarHelper.getDateTimeFromString(
						minDateTimeString, null);
			}
			String maxDateTimeString = args.getString(MAX_DATE);
			if (maxDateTimeString != null) {
				maxDateTime = CalendarHelper.getDateTimeFromString(
						maxDateTimeString, null);
			}
		}
		if (month == -1 || year == -1) {
			DateTime dateTime = DateTime.today(TimeZone.getDefault());
			month = dateTime.getMonth();
			year = dateTime.getYear();
		}
	}
protected void retrieveInitialArgs ( ) { Bundle args = getArguments ( ) ; if ( args != null ) { month = args . getInt ( MONTH , - 1 ) ; year = args . getInt ( YEAR , - 1 ) ; dialogTitle = args . getString ( DIALOG_TITLE ) ; Dialog dialog = getDialog ( ) ; if ( dialog != null ) { if ( dialogTitle != null ) { customTitle . setText ( dialogTitle ) ; } else { customTitleBar . setVisibility ( View . GONE ) ; } } startDayOfWeek = args . getInt ( START_DAY_OF_WEEK , 1 ) ; if ( startDayOfWeek > 7 ) { startDayOfWeek = startDayOfWeek % 7 ; } showNavigationArrows = args . getBoolean ( SHOW_NAVIGATION_ARROWS , true ) ; enableSwipe = args . getBoolean ( ENABLE_SWIPE , true ) ; sixWeeksInCalendar = args . getBoolean ( SIX_WEEKS_IN_CALENDAR , true ) ; enableClickOnDisabledDates = args . getBoolean ( ENABLE_CLICK_ON_DISABLED_DATES , false ) ; ArrayList < String > disableDateStrings = args . getStringArrayList ( DISABLE_DATES ) ; if ( disableDateStrings != null && disableDateStrings . size ( ) > 0 ) { disableDates . clear ( ) ; for ( String dateString : disableDateStrings ) { DateTime dt = CalendarHelper . getDateTimeFromString ( dateString , "yyyy-MM-dd" ) ; disableDates . add ( dt ) ; } } ArrayList < String > selectedDateStrings = args . getStringArrayList ( SELECTED_DATES ) ; if ( selectedDateStrings != null && selectedDateStrings . size ( ) > 0 ) { selectedDates . clear ( ) ; for ( String dateString : selectedDateStrings ) { DateTime dt = CalendarHelper . getDateTimeFromString ( dateString , "yyyy-MM-dd" ) ; selectedDates . add ( dt ) ; } } String minDateTimeString = args . getString ( MIN_DATE ) ; if ( minDateTimeString != null ) { minDateTime = CalendarHelper . getDateTimeFromString ( minDateTimeString , null ) ; } String maxDateTimeString = args . getString ( MAX_DATE ) ; if ( maxDateTimeString != null ) { maxDateTime = CalendarHelper . getDateTimeFromString ( maxDateTimeString , null ) ; } } if ( month == - 1 || year == - 1 ) { DateTime dateTime = DateTime . today ( TimeZone . getDefault ( ) ) ; month = dateTime . getMonth ( ) ; year = dateTime . getYear ( ) ; } }
Retrieve initial arguments to the fragment Data can include: month, year,
 dialogTitle, showNavigationArrows,(String) disableDates, selectedDates,
 minDate, maxDate
Retrieve initial arguments to the fragment Data can include : month year dialogTitle showNavigationArrows ( String ) disableDates selectedDates minDate maxDate
// Get arguments // Get month, year //dialog.setTitle(dialogTitle); // Don't display title bar if user did not supply // dialogTitle //dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); // Get start day of Week. Default calendar first column is SUNDAY // Should show arrow // Should enable swipe to change month // Get sixWeeksInCalendar // Get clickable setting // Get disable dates // Get selected dates // Get min date and max date