History log of /frameworks/base/core/java/android/widget/DayPickerView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
68763be41cffbcb4883a0a6293fc1aa9e17a3957 25-May-2016 Alan Viverette <alanv@google.com> Use ICU's Calendar class in date picker & related classes

Also organizes imports.

Bug: 28756630
Change-Id: I4e59c4b35c88edd94ff4b2945ad9feb2a4bd0022
/frameworks/base/core/java/android/widget/DayPickerView.java
bd51b4d0b930f8c64920954f4f9e5033e0001d5e 15-May-2015 Alan Viverette <alanv@google.com> Return correct year in DayPickerPagerAdapter.getYearForPosition()

Previously it wasn't offsetting the position by the min date's month,
so it would be off by a year if the min date wasn't in January. Also
now updates button visibility whenever the ViewPager's range changes.

Bug: 21203303
Change-Id: Id7a41a4fa48843943c744fb0fecd4bebb798cee5
/frameworks/base/core/java/android/widget/DayPickerView.java
b12172ef473450da7d1ad6b3fcae4ac41bec2395 14-May-2015 Alan Viverette <alanv@google.com> Update button visibility as a final step in DayPickerView construction

Previously it was only updated when the page was turned, but that listener
isn't called until the user turns the page.

Bug: 20701637
Change-Id: I06faf59660cda0e19d57766f4afd141e4a389b18
/frameworks/base/core/java/android/widget/DayPickerView.java
5c33949d0272c4dfc313cf8b56d28597e2ec2c62 28-Apr-2015 Alan Viverette <alanv@google.com> Fix DatePicker max date, disabled day color, and arrow visibility

Day validation moved from the PagerAdapter to the DayPickerView,
which is widget that actually handles the touch interaction and
disabled state for individual days.

Fixed disabled states for primary and secondary activated text
colors. Replaced old light/dark color state lists with themed
versions.

Removed conflicting view visibility changes for managing next and
previous arrows in DayPickerView.

Bug: 20630417
Bug: 20641013
Bug: 20641879
Change-Id: Icdaf02a3b57ec162169c31b8a27ebea908552321
/frameworks/base/core/java/android/widget/DayPickerView.java
ddf655c49f4173aa55c9ba1a2622cf75cf5bc2f2 22-Apr-2015 Alan Viverette <alanv@google.com> Implement RTL support in framework ViewPager, DatePicker

Lays out ViewPager in the opposite direction when in RTL mode, e.g.
the first item's starting edge is laid out at the largest possible
scrolling distance. This preserves both the meaning of positive
scrollX values and the meaning of positive adapter positions.

Also removes clickable attribute from DayPickerView since it has a
virtual view hierarchy.

Bug: 19408740
Bug: 20134073
Change-Id: Ib6f945335bd88da59c8c593c7c270e290e15d0a5
/frameworks/base/core/java/android/widget/DayPickerView.java
78bf1d329a4c0210394f846be1fd1390314aefc0 17-Apr-2015 Alan Viverette <alanv@google.com> Move date picker arrows out of SimpleMonthView

Also fixes incorrect docs in Drawable.

Bug: 20188255
Change-Id: I01c8563f734d9c1dad1e149bee80c651981e469f
/frameworks/base/core/java/android/widget/DayPickerView.java
816aa142023c75cf427401c21831193998bdf233 11-Apr-2015 Alan Viverette <alanv@google.com> Fix date picker dialog size

Also fixes date picker instance state restore and cleans up the fade
animations.

Bug: 20110268
Change-Id: I503e2f81253077f22f1619834dc2f2634138ae4e
/frameworks/base/core/java/android/widget/DayPickerView.java
f63757b7a6d06138860640f8e95326dc1ff47646 02-Apr-2015 Alan Viverette <alanv@google.com> Scale month view for small screens, use verbatim span for AM/PM label

Also fixes initial day selection in DatePickerDialog.

Bug: 19933912
Bug: 19937345
Change-Id: I88264a192c087361dbf21b055e74e1facf2506bc
/frameworks/base/core/java/android/widget/DayPickerView.java
60b674e07bf7346a673abd4a5f40bddeca16e7ff 25-Mar-2015 Alan Viverette <alanv@google.com> Clean up date picker attributes, add carets

Bug: 19819283
Bug: 19431364
Change-Id: Idd66f4ceb99d598c0f256d85c43bff6e25ccdd8f
/frameworks/base/core/java/android/widget/DayPickerView.java
0ef59ac0e57e9b99d174d4a53f7d9639357743ac 23-Mar-2015 Alan Viverette <alanv@google.com> Update DatePicker and CalendarView to latest Material spec

Bug: 19431364
Change-Id: If364a051a5208d170495de4182e46b32c7560e08
/frameworks/base/core/java/android/widget/DayPickerView.java
2d4c476aca79cc0f5b6f1e8561afd4bcc808dd54 08-Jan-2015 Alan Viverette <alanv@google.com> Merge "Fix accessibility delegation"
a54956a0bc611b1e9b3914edc7a604b59688f6b7 08-Jan-2015 Alan Viverette <alanv@google.com> Fix accessibility delegation

Ensures that delegate code is run last. Previously, calling the super
method from an accessibility delegate set on a widget would only run
code in the widget's parent. Next, the delegate code would run. Finally,
the widget's code would run. As a result, the widget code would override
any data supplied by the delegate.

By moving all overridden code to internal methods, we ensure that the
call chain for super includes the widget's parent code followed by the
widget's code. The delegate code will always run last.

BUG: 17641433
Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
/frameworks/base/core/java/android/widget/DayPickerView.java
c5b95c20b6fd3f4e63147efb22dd19c657b17001 07-Jan-2015 Alan Viverette <alanv@google.com> Fix date picker color handling, expose StateSet utils in more places

Enabled use of color selectors for the day number text, which lets us
use the "activated" text color and push the selection background
opacity up to 100%. Also ensures the selector circle stays within the
bounds of the selected day.

BUG: 18864682
Change-Id: Ia36ea748f83e13683a1de8ac1a259d353578d61a
/frameworks/base/core/java/android/widget/DayPickerView.java
4612740ddc76b3518dc6d189d5f8b5b7f60e9d64 13-Nov-2014 Alan Viverette <alanv@google.com> Implement Material-style delegate for CalendarView

BUG: 18266649
Change-Id: Ifd749328754b82dc43259ca7dadb472e449bdfff
/frameworks/base/core/java/android/widget/DayPickerView.java
e763c9bd6ed0ca46daafc21fc4313ebcad4bcafa 07-Nov-2014 Alan Viverette <alanv@google.com> Clean up encapsulation in date picker classes

First step to replacing CalendarView with DayPickerView. Removes
dependencies on the DatePickerController class and adds setters
and listeners needed to hook up to DatePicker or CalendarView.

BUG: 18266649
Change-Id: Ic215f96eaddc0048040ec6bca0d85b776216fd26
/frameworks/base/core/java/android/widget/DayPickerView.java
5ecbfeb38b6bdcfe8f3561f8cdcb4af9ba30c886 04-Nov-2014 Alan Viverette <alanv@google.com> Always update date picker position after change in range

BUG: 18204507
Change-Id: Id3ae11cdb68f60901a3145ebd93f3acbbccd71d2
/frameworks/base/core/java/android/widget/DayPickerView.java
50eb025c2fea7e364e0be951ce8ba6ca605f901a 24-Oct-2014 Alan Viverette <alanv@google.com> Fix min/max date range in DatePicker calendar mode

Also cleans abstraction of various day/year pickers and adapters.

BUG: 18104457
Change-Id: Ifde664788d8123a3123303940bac63c1350c2cd7
/frameworks/base/core/java/android/widget/DayPickerView.java
7119d0d66bd8649508c5bbb973a34b3b858bf8cf 26-Aug-2014 Alan Viverette <alanv@google.com> Update date and time picker styling

Change text sizes, fix year picker selected color, remove pulse
animations, fix landscape layout centering.

BUG: 17185948
BUG: 17187072
BUG: 14973897
BUG: 16938600
Change-Id: I11ad0abb217a950f4a96d1f781e08f09796c67bb
/frameworks/base/core/java/android/widget/DayPickerView.java
bd9152f6ee156ee473f05f6f05f238605996fca4 01-Oct-2013 Fabrice Di Meglio <fdimeglio@google.com> Update DatePicker widget and its related dialog

- the old DatePicker widget is still there for obvious layout compatibility reasons
- add a new delegate implementation for having a new UI
- use the new delegate only for the DatePickerDialog (which does not need to be
the same)
- added support for Theming and light/dark Themes
- added support for RTL
- added support for Accessibility
- verified support for Keyboard
- verified that CTS tests for DatePicker are passing (for both the legacy and the
new widgets)

Also added a new HapticFeedbackConstants.CALENDAR_DATE and its related code for
enabling day selection vibration

Change-Id: I256bd7c21edd8f3b910413ca15ce26d3a5ef7d9c
/frameworks/base/core/java/android/widget/DayPickerView.java