How to enable dates only between current date and previous 7 days on DatePickerDialog?

Viewed 3019

Following pic is a web date picker. There, only between current date and previous 7 days are able to be selected.

enter image description here

I've to do this at Android using DatePickerDialog. I implemented DatePickerDialog on my EditText's OnClickListener as an example here. The question is how to make user could not select out of that range? Any idea?

1 Answers
Related