In my application I need to set the age limit between 7-18 years. I want to dispaly the date-picker with limited range of options.
How can I edit for the same task into date-picker with this code DatePicker
I am using below code to restrict year but when “+/-” button is clicked, year can be changed above/below restricted range. I want that user should not be able to increase or decrease date values.
return new DatePickerDialog(this,
mDateSetListener,
mYear-7, mMonth, mDay);
Please help me for the set the date limit of birthdate between 7- 18 years, and if possible then with day and months.
Also, How can I set min age limit?
Thanks.
After speanding so much time, finally I got the solution.