Skip to content

Commit

Permalink
Added example for setting date range in sample.
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondlam committed Jan 29, 2014
1 parent ce0465d commit f7d95b4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ protected void onCreate(Bundle savedInstanceState) {
public void onClick(View v) {
datePickerDialog.setVibrate(isVibrate());
datePickerDialog.setYearRange(1985, 2028);

// Alternatively, you can set the date range of the Date Picker
// datePickerDialog.setDateRange(startYear, startMonth, startDay, endYear, endMonth, endDay);

datePickerDialog.show(getSupportFragmentManager(), DATEPICKER_TAG);
}
});
Expand Down

0 comments on commit f7d95b4

Please sign in to comment.