Android - New calendar style DatePicker and TimePicker

29,202

Solution 1

For future reference, the BetterPickers library has added support for the Google Now and Google Calendar date and time pickers from AOSP.

https://github.com/derekbrameyer/android-betterpickers/

I have not been able to properly implement the library tyczj suggested, and the test APK for it even causes an ANR. Better Pickers seems more stable.

Might be worth checking out both if anyone else wants to implement this.

Solution 2

there is a DatePicker library that looks just like that

Share:
29,202

Related videos on Youtube

Guillaume Jobin
Author by

Guillaume Jobin

Updated on July 09, 2022

Comments

  • Guillaume Jobin
    Guillaume Jobin almost 2 years

    Is it possible to use the new DatePickerDialog and TimePickerDialog style used in the latest version of android? They can be seen here : New style Date and time pickers

    I tried looking for the latest sources of the AOSP Project, but event with that code, I still get the old one (With spinners) - They use the same DatePickerDialog and TimePickerDialog classes, so I was not expecting anything else.

    Thanks for your help.

  • Guillaume Jobin
    Guillaume Jobin almost 11 years
    Is'nt there a way to use the one from Google ?
  • tyczj
    tyczj almost 11 years
    what is the difference its the same thing
  • Guillaume Jobin
    Guillaume Jobin almost 11 years
    Yeah but TimePicker is not ready in this lib. (Currently working on the TimePicker)
  • tyczj
    tyczj almost 11 years
    well if google has not submitted the code to AOSP (I personally have not checked myself) for you to pull it from, then you ont be able to use it so you have no choice right now
  • Guillaume Jobin
    Guillaume Jobin almost 11 years
    I tought that being used in the app made it AOSP.
  • tyczj
    tyczj almost 11 years
    the calendar app is in the AOSP but if they did not commit the code then how can you get it?
  • Guillaume Jobin
    Guillaume Jobin almost 11 years
    At what frequency do they make commit ?
  • Marc Plano-Lesay
    Marc Plano-Lesay over 10 years
    The AOSP calendar app is not updated anymore. That's why Calendar appeared in the Play Store.
  • DarkLeafyGreen
    DarkLeafyGreen almost 10 years
    This seems not to be maintained anymore.
  • Psypher
    Psypher over 9 years
    Ya thats right. Also its no longer working with API 21
  • Guillaume Jobin
    Guillaume Jobin about 9 years
    They seems to have fixed compatibility with API21.