Code example for DatePicker

Methods: init

0
    } 
 
    @Override 
    protected View onCreateDialogView()
    { 
        DatePicker datePicker = new DatePicker(getContext());
        datePicker.init(value.year, value.month, value.day, mOnDateChangedListener);
        return datePicker;
    } 
     
    DatePicker.OnDateChangedListener mOnDateChangedListener = new DatePicker.OnDateChangedListener()
    { 
        @Override 
        public void onDateChanged(DatePicker dp, int y, int m, int d) 
        { 
            tmpValue.year = y; 
            tmpValue.month = m; 
            tmpValue.day = d; 
        } 
    }; 
Connect your IDE to all the code out there  Get Codota for Java