title: Restrict the year of the DatePicker dialogue to current year only
body: <p>I am developing an android app where I want to restrict the date picker dialog' year to current year only that means,</p>
  
  <p>User can not change the year to previous years or next years.</p>
  
  <p>Could you please let me know know the way. I tried other answer however found that setMinDate() method however that is for dates only. if that can be used, how can it be?</p>