title: Android how to show years first in datepicker when onclick the button
body: <pre><code>datepickerLayout.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View arg0) {
          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);
  
         DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),new DatePickerDialog.OnDateSetListener() {
              @Override
              public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {
  
                  datePickerDialog.getTouchables().get(0).performClick();
  
                  String strdate=year+"-"+(monthOfYear+1)+"-"+dayOfMonth;
              }
          }, yy, mm, dd);
          datePickerDialog.getDatePicker().setMinDate(calendar.getTimeInMillis());
          datePickerDialog.show();
      }
  });
  </code></pre>
  
  <p>I want to display years in datepicker when button is clicked after selecting the years i want to select date.</p>