i just want to create date picker dialog in which it's show only years option to choose .
Only year option is visible and user pick any year from dialog box .
for this, try number picker instead of datepicker, see below links:
link1
link2