Code example for DatePicker

Methods: clearFocusgetDayOfMonthgetMonthgetYear

0
    } 
     
    @Override 
    public void onClick(DialogInterface dialog, int which) {
        if (mCallBack != null) {
            mDatePicker.clearFocus();
            mCallBack.onDateSet(mDatePicker, mDatePicker.getYear(), mDatePicker.getMonth(), mDatePicker.getDayOfMonth());
        } 
    } 
     
    @Override 
    public void onDateChanged(DatePicker view, int year,int month, int day) {
        boolean color = true;
		if (isDateAfter(view)) {
			textViewVisible(); 
			Calendar mCalendar = Calendar.getInstance();
			mCalendar.setFirstDayOfWeek(Calendar.MONDAY);
			if (color) {
				view.init(mCalendar.get(Calendar.YEAR),mCalendar.get(Calendar.MONTH),mCalendar.get(Calendar.DAY_OF_MONTH), this);
				color = false;
Connect your IDE to all the code out there  Get Codota for Java