Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android only month and year picker in material design

Im working on app that needs to input expiration date for credit card but andorid 5.0+ date time picker has only options for picking date with days. Is there any library for that because I cant find any. I also didnt find anything in material design guidelines regarding this.

Thx

like image 858
Dominik Mičuta Avatar asked Nov 09 '22 04:11

Dominik Mičuta


1 Answers

Went ahead making a modified Date Picker called Simple Date picker ... have used the code similar to Date Picker just to show month and year. You can also provide your own theme to the SimpleDatePickerDialog.

see https://github.com/resengupta/Month-Year-Date-Picker

like image 103
ReeSen Avatar answered Nov 14 '22 21:11

ReeSen