views:

625

answers:

2

I am using datePicker in android to display images based on user selected dates. I need to limit said dates to certain days for instance Jan 1st 2010 to Dec 31st 2010. Simple as that i thought but no where can i find the answer on how to limit these dates.

Does anyone know how to limit the dates for Android DatePicker

A: 

I guess you have to implement your own DatePicker. The logic behind this would be: "Only a few developers would ever limit the DatePicker so they have to implement the functionality themselfs."

MrSnowflake
Also for XML there are some additional properties available like endYear beginYear, you can use that for bounds.
Pentium10
where would i find the information on the endYear beginYear, sounds like that would work pretty nicely. I was afraid of the answer implement my own, hopefully this xml properties will pan out.
matt
the endYear and beginYear bounds only work with widget not the actual datePicker dialog i am using. I will look to see how to implement the widget instead, unless anyone can offer info on how to apply bounds to the dialog
matt
A: 

Dear matt. FYI, End year and start year are bound to the datePicker dialog only.

anjes