Android - New calendar style DatePicker and TimePicker
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
Related videos on Youtube
Guillaume Jobin
Updated on July 09, 2022Comments
-
Guillaume Jobin almost 2 years
Is it possible to use the new
DatePickerDialog
andTimePickerDialog
style used in the latest version of android? They can be seen here : New style Date and time pickersI 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
andTimePickerDialog
classes, so I was not expecting anything else.Thanks for your help.
-
Guillaume Jobin almost 11 yearsIs'nt there a way to use the one from Google ?
-
tyczj almost 11 yearswhat is the difference its the same thing
-
Guillaume Jobin almost 11 yearsYeah but TimePicker is not ready in this lib. (Currently working on the TimePicker)
-
tyczj almost 11 yearswell 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 almost 11 yearsI tought that being used in the app made it AOSP.
-
tyczj almost 11 yearsthe calendar app is in the AOSP but if they did not commit the code then how can you get it?
-
Guillaume Jobin almost 11 yearsAt what frequency do they make commit ?
-
Marc Plano-Lesay over 10 yearsThe AOSP calendar app is not updated anymore. That's why Calendar appeared in the Play Store.
-
DarkLeafyGreen almost 10 yearsThis seems not to be maintained anymore.
-
Psypher over 9 yearsYa thats right. Also its no longer working with API 21
-
Guillaume Jobin about 9 yearsThey seems to have fixed compatibility with API21.