In my application, when the user selects to view the details of the current month, a new screen will open. In that screen, we will have a drop down menu. In the drop down menu I want to display all the dates of that month. So that he can select the date he is interested in.
For example, if the current month is Feb, then drop down menu is expected to contain 28 numbers( sometimes 29).
I have used xml layout in my app.
Could anyone suggest me a better way of implementing this…?
Try using DatePicker…
here is the sample code..
Write this in your activity class..
and call this whenever you want to display the Datepicker..
That displays a nice DatePicker from which you can select a date….