title: How to enable dates only between current date and previous 7 days on DatePickerDialog?
body: <p>Following pic is a web date picker. 
  There, only <strong>between current date and previous 7 days</strong> are able to be selected. </p>
  
  <p><a href="https://i.stack.imgur.com/glzz2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/glzz2.png" alt="enter image description here"></a></p>
  
  <p>I've to do this at Android using <code>DatePickerDialog</code>. I implemented <code>DatePickerDialog</code> on my <code>EditText</code>'s <code>OnClickListener</code> as an example <a href="http://androidopentutorials.com/android-datepickerdialog-on-edittext-click-event/" rel="nofollow noreferrer">here</a>. 
  The question is how to make user could not select out of that range? Any idea?</p>