summaryrefslogtreecommitdiff
path: root/core/java/android/widget/RadialTimePickerView.java
Commit message (Collapse)AuthorAgeFilesLines
* Update core widgets to save attribute source info.Aurimas Liutikas2019-02-071-0/+2
| | | | | | Bug: 111439551 Test: make -j Change-Id: I72997a87122f38b32e38e42a690385acc7d0e521
* Fix import statements in android.widget package.Aurimas Liutikas2016-10-111-4/+4
| | | | | | | Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
* Custom pointer icon for DatePicker and TimePickerVladislav Kaznacheev2016-09-231-0/+13
| | | | | Bug: 31652821 Change-Id: I512693a48c8c2f8ca96983efaaae3af138827ee7
* Use localized hour when announcing selection for accessibilityAlan Viverette2016-08-041-7/+31
| | | | | Bug: 30451273 Change-Id: I04276dc12d479ff5336799ebb32ff4cf5d66068a
* Cancel animation and jump to current state if not animating pickerAlan Viverette2016-05-061-0/+7
| | | | | Bug: 28629631 Change-Id: I0e1b3c2f2c774e027f2df8c9ab75c7a89bd2ddb7
* Call OnTimeChangedListener on AM/PM change in clock-style TimePickerAlan Viverette2016-04-191-2/+15
| | | | | Bug: 28257554 Change-Id: I25aabac783ea2b6e68be4b6c60f0d55a4c37af26
* Include current selection mode in TimePicker event textAlan Viverette2016-04-121-2/+2
| | | | | Bug: 23118708 Change-Id: I709f28674c7a959cdfb279f8643a07aa562d8fef
* Animate radial time picker selector during hour/minute transitionAlan Viverette2015-10-021-241/+190
| | | | | | | | | Also propagates XML attrs from time picker to radial view during construction, which allows the hour colors & etc. to be changed inline without needing to set the timePickerStyle theme attribute. Bug: 20333885 Change-Id: Ib42b9f5b93b5d6ce1dcbaa05f99cef40c9f9a9d3
* Fix hours in clockAlan Viverette2015-04-071-9/+9
| | | | | Bug: 20096871 Change-Id: Ib4f155f6b6221bd2a41af86a018d42ddea372950
* Fix inner/outer circle swap and dot color in RadialTimePickerViewAlan Viverette2015-04-061-92/+95
| | | | | Bug: 20041669 Change-Id: Iefdd477136970efe1638982c1f659fbb4f452676
* Clean up time picker attributes and drawing codeAlan Viverette2015-03-241-94/+47
| | | | Change-Id: I16283d666f49885855a5f9bb3781cea07af058fd
* Fix radial time picker for Explore by Touch and scroll actionsAlan Viverette2015-03-231-12/+13
| | | | | Bug: 19889521 Change-Id: I4fa6b9e0459630ecdb4144f4640213415247735a
* Implement landscape layout for time picker dialogAlan Viverette2015-02-261-0/+3
| | | | | | | | | | | | | | | Adds support overriding default alert dialog panel elements by including them in the dialog's custom content view, but no public API (yet!) since the panel IDs have never been public. Some minor cleanup and refactoring in TimePickerDialog. Removes Holo styles for "clock" and "calendar" style pickers since they are new in Material. If the new styles are used against Holo they will match Material but with Holo primary/accent colors. Also implements themed color state lists to resolve TODOs in both time and date pickers. Bug: 19431361 Change-Id: I095fd8d653e02d9e5d20d66611432a08a7a5685e
* Update time picker to match latest Material specAlan Viverette2015-02-201-196/+100
| | | | | | | | Also removes saveLayerAlpha() call from radial time picker's disabled drawing path. Bug: 19431361 Change-Id: I18641bb9544107bb8704fc43d0dd6c5b18ff99ce
* Fix buildAlan Viverette2015-01-271-1/+1
| | | | Change-Id: I134e40dbabcb9b111b3d7851a7adc247f5c92e3b
* resolve merge conflicts of da9653a to master.Alan Viverette2015-01-271-2/+20
|\ | | | | | | Change-Id: I51a1056b36015986d7e55aa38d658b547c2446e1
| * Convert getHourForDegrees result to 12-hour format when neededAlan Viverette2015-01-261-1/+19
| | | | | | | | | | | | | | | | Also prevents the selector from jumping between the inner and outer circle during touch exploration in 24-hour mode. Bug: 19101918 Change-Id: If342056b378927397f8651dad5e8d806bcda03a6
* | Update radial time picker styling, clean up codeAlan Viverette2015-01-141-364/+254
|/ | | | | | | | | | Uses activation color for picker background. Removes bounce animation when switching between hour and minute pickers. Improves touch handling when touch moves outside the circle. Cleans up use of string in XML where float should have been used. Fixes layout so that padding can be adjusted. Change-Id: Ibc8e087a83ca522272cdcd434b36cf38583bf541
* Improve time picker accessibilityAlan Viverette2014-12-101-0/+26
| | | | | | | | Overrides click action description for TimePicker hour/minute selectors and manually specifies traversal order for radial time picker nodes. BUG: 17468036 Change-Id: I4472b42a95d762085d7a4d382feb2b9216c0d41c
* Fix auto-advance regression in radial time pickerAlan Viverette2014-12-081-18/+21
| | | | | | | | If autoAdvance is set, we need to always fire the listener. We should create a separate callback for auto-advance, but this is a minimal fix. BUG: 18654878 Change-Id: Ie7b8a3ff91761325a508f580b27fa3b08f7b4e16
* Only send haptic events from time picker when time changesAlan Viverette2014-12-011-55/+73
| | | | | BUG: 18572841 Change-Id: Iaa26e2f0804e301f8754e19a1d03dbd2142bf044
* Re-initialize data when changing time picker 24-hour modeAlan Viverette2014-11-181-1/+4
| | | | | BUG: 18381313 Change-Id: Ie1fa9fbbf8edadfda71cf0ad4f1c39395e56ecc7
* Add support for Explore by Touch to RadialTimePickerViewAlan Viverette2014-10-241-142/+396
| | | | | | | | 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
* Update AM/PM selectors for clock face TimePickerAlan Viverette2014-10-151-230/+39
| | | | | | | | The selectors are now CheckedTextViews, which makes more sense when using a screen reader. BUG: 17468036 Change-Id: I09c62a08172a710faa8fb7ed2bf99a66331e5701
* Fix radial time picker inner circle (1-12) selectionsAlan Viverette2014-09-191-1/+1
| | | | | | | Result of a poorly collapsed set of if block conditionals. BUG: 17580782 Change-Id: I7f7e5038f943d1f49e1541acfa282479cb2505ea
* Fix TimePicker.setCurrentHour() when argument is 0Alan Viverette2014-09-151-26/+35
| | | | | BUG: 17515453 Change-Id: Ie67db01ed3c574a23ec377de15e48aa1b4ae3709
* Fix AM/PM text i18n and clean up keyboard support in time pickerAlan Viverette2014-09-031-3/+4
| | | | | | | | | | Also updates date picker to use drawable for the header background to match the implementation in time picker. The time picker background now supports showing a focused state ripple. BUG: 17344077 BUG: 16227517 Change-Id: Ida715badb4a151fc16edd91fd4a0dae32953c99e
* Fix date and time picker stylingAlan Viverette2014-08-151-2/+5
| | | | | | | | | | | | | | 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
* Clean up TimePicker and DatePicker stylingAlan Viverette2014-07-291-3/+16
| | | | | | | | Removes the time and date picker specific themes and defaults their theme attributes to use the alert dialog theme attribute's value. BUG: 14973897 Change-Id: Id5cc74ea0c1a379fc1ee76b354a1bb5ba329585a
* Fix bug #16307124 Not able to select hour 12 in TimePicker with 24-hour time ↵Fabrice Di Meglio2014-07-251-0/+3
| | | | | | | | enabled - ahhh modulo ... Change-Id: Ief08594590480bfcecc09cad1f782e57b05d9786
* Add public attributes for TimePicker stylingAlan Viverette2014-07-171-14/+14
| | | | | BUG: 11218747 Change-Id: Ifdf981280ebe20a9066f219c9a4505d0d7486b2e
* Material themeAlan Viverette2014-06-061-12/+12
| | | | | BUG: 15467097 Change-Id: I15191362e104a902895418fc615892c21db64c35
* Fix RadialTimePicker stylingAlan Viverette2014-06-031-70/+135
| | | | | | Also sneaks in some whitespace cleanup for PhoneWindow! Change-Id: I1bc8a889a59d69ae80b6cfbf54d57cd7f8ad4a36
* Update TimePicker widget and its related dialogFabrice Di Meglio2013-09-271-0/+1396
- the old TimePicker widget is still there for obvious layout compatibility reasons - add a new delegate implementation for having a new UI based on a radial picker - use the new delegate only for the TimePickerDialog (which does not need to be the same) - added support for Theming and light/dark Themes - added support for I18N (hour formatting and time separator and also position of AM/PM indicator coming from Unicode CLDR) - added support for RTL - verified support for Keyboard - verified that CTS tests for TimePicker are passing (for both the legacy and the new widgets) Also added a new HapticFeedbackConstants.CLOCK_TICK and its related code for enabling ticks vibration. Change-Id: Ib9b53a152bd9e97383dc391ef8c26da91217298f