date picker show only year to select in android
15,677
for this, try number picker instead of datepicker, see below links:
Author by
user2021938
Updated on June 13, 2022Comments
-
user2021938 about 2 years
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 .
-
RossC about 10 yearsShow your code, and what you did.
-
duggu about 10 yearspossible duplicate of How to display year only in date picker in android
-
Aniruddha about 10 years
-
user2021938 about 10 years@aniruddha simple date picker is created , but i have to show only year option to pick in android ICS .
-
DK250 almost 6 yearsThis link may help anyone who has the same issue: geekcodehub.com/2018/05/23/custom-year-picker-in-android
-