1

I'm trying to mimic the Date Selection control of the New Event screen of the Android Calendar App. The one circled in the picture below.enter image description here

I already have the Dialog popping up, but what is the control that holds the date with the icon on the bottom right? Is that a built in control? If not how do I accomplish the same?

Jonas Stawski
  • 6,682
  • 6
  • 61
  • 106
  • Does this answer your question? [Android spinner with date picker, like Google Calendar app](https://stackoverflow.com/questions/9406920/android-spinner-with-date-picker-like-google-calendar-app) – user4157124 Oct 01 '22 at 20:23

1 Answers1

0

It is Spinner and is available as drop down since ICS.

Refer here for implementation.

PravinCG
  • 7,688
  • 3
  • 30
  • 55
  • Can you provide an example on how to add it to my Activity? Designer or programmatically is fine. What attributes I need to set in order to make it popup a date picker? – Jonas Stawski Mar 01 '13 at 20:05
  • Sorry, but the linked example doesn't explain how to bring up a DatePicker dialog with a Spinner. – Jonas Stawski Mar 01 '13 at 20:11
  • @JonasStawski You have to custom make it. I believe you asked for the control and I told you the widget. To have datepicker you would have to customize the dropdown behavior. – PravinCG Mar 01 '13 at 20:17
  • 2
    this answers my question http://stackoverflow.com/questions/9406920/android-spinner-with-date-picker-like-google-calendar-app – Jonas Stawski Mar 01 '13 at 20:19