2

I am looking to follow the material design guidelines on having a spinner like this: enter image description here

And when clicked it should pupup a DatePickerDialog like this:

enter image description here

And finally when date chosen, get the chosen date inside the spinner like this: enter image description here

I need help with how do I declare such a spinner in xml?

ML13
  • 895
  • 8
  • 15
  • possible duplicate http://stackoverflow.com/questions/3712710/android-calendar-view-for-date-picker refer to @anoniim answer – karansky Mar 21 '16 at 05:16
  • Thank you @karansky for the link, but that`s not what I need, I need the way its presented in the question. – ML13 Mar 21 '16 at 20:48
  • Oh sorry, my bad. Your title is quite misleading, from the title, I thought you wanted a calender pop up. After carefully reading your description, you want a spinner that looks like the pic? You have already achieved the calender pop up? If that's the case, I would recommend you to use custom adapter for the spinner to achieve the result. There might be a theme out there that fits what you want but I don't know which theme should that be – karansky Mar 22 '16 at 01:29

1 Answers1

1

add style="@style/Widget.AppCompat.Spinner" (or similar) to the 'date' text view.

Pnemonic
  • 1,685
  • 17
  • 17