summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/SimpleMonthView.java
Commit message (Collapse)AuthorAgeFilesLines
* Localize SimpleMonthViewChet Haase2015-07-171-2/+5
| | | | | | | | | | The days of the month were not being localized, resulting in English numbers for non-English languages. Now we format the numbers with the current locale. Issue #22540629 [MRA14D][Arab][Token] numbers displayed in english Change-Id: I2b17d55ba2d0aa47b5a28c8846c6cf9723ababb1
* Fix DatePicker max date, disabled day color, and arrow visibilityAlan Viverette2015-04-281-17/+32
| | | | | | | | | | | | | | | | | | 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
* Implement RTL support in framework ViewPager, DatePickerAlan Viverette2015-04-221-9/+47
| | | | | | | | | | | | | | 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
* Move date picker arrows out of SimpleMonthViewAlan Viverette2015-04-171-179/+35
| | | | | | | Also fixes incorrect docs in Drawable. Bug: 20188255 Change-Id: I01c8563f734d9c1dad1e149bee80c651981e469f
* Fix date picker dialog sizeAlan Viverette2015-04-101-15/+3
| | | | | | | | Also fixes date picker instance state restore and cleans up the fade animations. Bug: 20110268 Change-Id: I503e2f81253077f22f1619834dc2f2634138ae4e
* Scale month view for small screens, use verbatim span for AM/PM labelAlan Viverette2015-04-011-28/+66
| | | | | | | | Also fixes initial day selection in DatePickerDialog. Bug: 19933912 Bug: 19937345 Change-Id: I88264a192c087361dbf21b055e74e1facf2506bc
* Clean up date picker attributes, add caretsAlan Viverette2015-03-301-85/+270
| | | | | | Bug: 19819283 Bug: 19431364 Change-Id: Idd66f4ceb99d598c0f256d85c43bff6e25ccdd8f
* Update DatePicker and CalendarView to latest Material specAlan Viverette2015-03-231-313/+382
| | | | | Bug: 19431364 Change-Id: If364a051a5208d170495de4182e46b32c7560e08
* Use text ascent / descent to center SimpleMonthView labelsAlan Viverette2015-01-081-16/+27
| | | | | | | | | Also updates Canvas.drawText() docs to clarify that the y-origin is actually the baseline rather than the top (which is what developers expect). BUG: 18864682 Change-Id: Ibfa2a79327d17b5135f90468195fbeca922a25c8
* Fix date picker color handling, expose StateSet utils in more placesAlan Viverette2015-01-071-119/+105
| | | | | | | | | | 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
* Fix min/max date range in DatePicker calendar modeAlan Viverette2014-10-241-11/+9
| | | | | | | Also cleans abstraction of various day/year pickers and adapters. BUG: 18104457 Change-Id: Ifde664788d8123a3123303940bac63c1350c2cd7
* Add support for Explore by Touch to RadialTimePickerViewAlan Viverette2014-10-241-1/+2
| | | | | | | | Also adds IntArray, which is like LongArray for integers, and prevents the AM/PM label text in the time picker header from wrapping. BUG: 17468036 Change-Id: I7120089885709f23e20368927e4b3ed9db2e5393
* Use Calendar day of week rather than Time in SimpleMonthViewAlan Viverette2014-09-101-4/+9
| | | | | BUG: 17377360 Change-Id: I685f35b760c049edaa8934eccaf5ce1bbf326cf2
* Use correct single-letter date format in SimpleMonthViewAlan Viverette2014-08-191-7/+19
| | | | | | | Also fixes layout on sw600dp-land (by removing the sw600dp layout!). BUG: 17068298 Change-Id: I2545d0e1904a0028156b96b6ad17674c6107ce5d
* Fix date and time picker stylingAlan Viverette2014-08-151-21/+17
| | | | | | | | | | | | | | Removes done buttons from widgets, fixes date picker day selection, fixes dialog layouts in landscape, updates colors. Adds API on AlertDialog for setting the view by resource ID, which is necessary to correctly inflate the view against the dialog's parent view. BUG: 16941550 BUG: 16852521 BUG: 16878697 BUG: 16838659 BUG: 17047435 Change-Id: I138858ce06cd4abf68a2c3361ec170370236b33b
* Fix bug #16245852 Clean SimpleMonthView.setMonthParams() in the new DatePickerFabrice Di Meglio2014-07-251-68/+32
| | | | | | | - simply create a method for passing those parameters - remove non needed constants Change-Id: If6e7d21ff07370edd8c73d1e9b5c5f820f3deb5d
* Update DatePicker widget and its related dialogFabrice Di Meglio2014-07-151-0/+720
- 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