e565e525fadbe7bed7c3c5a47331ba1ea3d1f0be |
|
13-Jun-2017 |
Andrei Stingaceanu <stg@google.com> |
DayPickerView - clamp date to min/max Besides clamping @ setMinDate() and setMaxDate() also clamp @ setDate(). Bug: 36636681 Bug: 62485314 Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t android.widget.cts.CalendarViewTest#testMinMaxRangeClampingMaterial Change-Id: I455cd43e7228e10d58b5f886dcab8332bca72de7
/frameworks/base/core/java/android/widget/DayPickerView.java
|
cf5a420ead56916cb3e8886574e1447cf17c8e19 |
|
06-Jun-2017 |
Andrei Stingaceanu <stg@google.com> |
Fix unexpected DatePicker validation Remove throwing an error and instead clamp the selected date to min/max when changing ranges. Bug: 36636681 Test: manually verified that the case in the bug does not happen again Change-Id: If540f58d21375d2320df5215504d4569e5c2be2e
/frameworks/base/core/java/android/widget/DayPickerView.java
|
f383c24749ae6bfcf8f8cee26fe7bc6897f7511c |
|
18-May-2017 |
Jeff Sharkey <jsharkey@android.com> |
Unbreak even more APK 26 apps running on "O" preview/beta builds. Bug: 38391358 Test: builds Change-Id: Ic48f9cb53da3ed8241e5d40d3096304ee4dfebd2
/frameworks/base/core/java/android/widget/DayPickerView.java
|
51efddbd3bb304de2dd47fa8cd1114ac555958bb |
|
05-Apr-2017 |
Alan Viverette <alanv@google.com> |
Remove unnecessary casts on calls to findViewById Just frameworks/ this time. More paths to come. Bug: 24137209 Test: make -j32 Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
/frameworks/base/core/java/android/widget/DayPickerView.java
|
fc9ea846803aa6184d440a3f0726da40b77d6ca0 |
|
21-Feb-2017 |
Andrei Stingaceanu <stg@google.com> |
CalendarView Material - fix exception if date is out of range Due to not cherry-picking this change into N_MR1 fix the version check to reflect this. Bug: 28019187 Test: run cts-dev -m CtsWidgetTestCases -t \ android.widget.cts.CalendarViewTest Change-Id: I128d25c3ed949729e2afaeefad381bfb58d89ccd
/frameworks/base/core/java/android/widget/DayPickerView.java
|
99441c5d7da45c10b729185852be97cbb0bdc8d5 |
|
12-Oct-2016 |
Aurimas Liutikas <aurimas@google.com> |
Fix import statements in android.widget package. Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
/frameworks/base/core/java/android/widget/DayPickerView.java
|
95331038c3eea07af17cb8c64574b6516612548c |
|
28-Jun-2016 |
Andrei Stingaceanu <stg@google.com> |
CalendarView Material - throw exception if date is out of range Similar to CalendarViewLegacyDelegate#goTo Bug: 28019187 Change-Id: Id21dcd208a594b98dc89caf59d36b32bdf9484be
/frameworks/base/core/java/android/widget/DayPickerView.java
|
7ac0f32c16d4001ec18ba2aba5cfc011d325d524 |
|
25-May-2016 |
Alan Viverette <alanv@google.com> |
Merge commit '75dfc87e5e83c04adf876bc7d0d7cab17a31b4d5' into manual_merge_75dfc87 Change-Id: Ib55f65f9b00ea6c6515d3e4fc59d86351398b7e1
|
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
|
698b751dc78f8a325c5b513cacd3335151f807ea |
|
11-Apr-2016 |
Kirill Grouchnikov <kirillg@google.com> |
Add @TestApi-guarded way to get bounds of specific day in CalendarView Two separate implementation paths, one for Material look / layout, and one for legacy / pre-Material one. Bug: 28037149 Change-Id: Id1946802c0a93218d9eb0b73c81ad76dc027763c
/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
|