title: Material Design datepickerdialog
body: <p>I would like to know if I can implement material design datepickerdialog for my android app</p>
  
  <p><strong>Code</strong>:</p>
  
  <pre><code>    import java.util.Calendar;
      import android.app.DatePickerDialog;
      import android.app.Dialog;
      import android.os.Bundle;
      import android.support.v4.app.DialogFragment;
      import android.widget.DatePicker;
      import android.widget.EditText;
      public class SelectDateFragment  extends DialogFragment implements
      DatePickerDialog.OnDateSetListener {
      EditText mEdit;
      public Dialog onCreateDialog(Bundle savedInstanceState) {
            final Calendar calendar = Calendar.getInstance();
            int yy = calendar.get(Calendar.YEAR);
            int mm = calendar.get(Calendar.MONTH);
            int dd = calendar.get(Calendar.DAY_OF_MONTH);
            return   new DatePickerDialog(getActivity(), this, yy, mm, dd);
      }
      @Override
      public void onDateSet(DatePicker view, int yy, int mm, int dd) {
           populateSetDate(yy, mm + 1, dd);
      }
      public void populateSetDate(int year, int month, int day) {
           mEdit = (EditText) getActivity().findViewById(R.id.date);
           mEdit.setText(day + "/" + month + "/" + year);
      }
      }
  </code></pre>
  
  <p>Simply, I dont want to use third part libraries.I just want to know if it can be done using android support libraries and how.</p>