MaxM
MaxM

Reputation: 765

Looking for the source code of the new Google Calendar Time and Date Picker Widgets

I would like to use the brand new Date Picker and Time Picker that is now part of the new official Google Calendar App.

http://googlesystem.blogspot.de/2013/05/new-google-calendar-controls-for-android.html

All I found so far is this source code on grepcode but I can't find the widgets or fragments or activities there.

http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android-apps/4.2.2_r1/

Is that already public or is there something similar out there?

Upvotes: 9

Views: 7860

Answers (2)

Andrew Mackenzie
Andrew Mackenzie

Reputation: 5737

There is some pretty directly usable source code snippets in this Android Developer Pages: http://developer.android.com/guide/topics/ui/controls/pickers.html

I used it as-is and all works just fine.

Also, reference these: DatePickerDialog http://developer.android.com/reference/android/app/DatePickerDialog.html TimePickerDialog http://developer.android.com/reference/android/app/TimePickerDialog.html DialogFragment http://developer.android.com/reference/android/support/v4/app/DialogFragment.html

Upvotes: 0

dermatthias
dermatthias

Reputation: 1180

I think the code you are looking for can be found here:

https://android.googlesource.com/platform/frameworks/opt/datetimepicker/+/master/src/com/android/datetimepicker

Upvotes: 6

Related Questions