Code example for DatePicker

Methods: setCalendarViewShown

0
        setNegativeButtonText("Cancel");
    } 
 
    @Override 
    protected View onCreateDialogView() {
        datePick = new DatePicker(getContext());
        if(Build.VERSION.SDK_INT >= 11)
        	datePick.setCalendarViewShown(false);
        return datePick;  
    } 
     
    @Override 
    protected void onBindDialogView(View v) {
        super.onBindDialogView(v);
        datePick.init(year,month,dayOfMonth, null);
    } 
     
    @Override 
    protected void onDialogClosed(boolean positiveResult) {
      super.onDialogClosed(positiveResult);
Contextual code suggestions in your IDE  Get Codota for Java