51 Commits

Author SHA1 Message Date
haodong
0d0c90b9ef Updated string translations.
PiperOrigin-RevId: 354978993
2021-02-01 11:03:44 -08:00
marianomartin
11169ce616 [TimePicker] Fixed issues when re using dialog instance
Resolves https://github.com/material-components/material-components-android/issues/1995

PiperOrigin-RevId: 352610118
2021-01-19 15:17:01 -08:00
marianomartin
bf0d11b4e7 [TimePicker] Changed clock face size to be dynamic
PiperOrigin-RevId: 352024053
2021-01-15 17:02:42 -05:00
marianomartin
74350dead6 [TimePicker] Fixed numbers glitching on first show of time picker
PiperOrigin-RevId: 350417836
2021-01-07 12:05:30 -05:00
marianomartin
76cf0eb07e [TimePicker] Fixed text input mode to correctly restore state
PiperOrigin-RevId: 350349289
2021-01-06 15:34:51 -05:00
dniz
4af9eabe8a [TimePicker] Renamed ThemeOverlay.MaterialComponents.MaterialTimePicker to ThemeOverlay.MaterialComponents.TimePicker to be more consistent with other time picker styles
PiperOrigin-RevId: 347692913
2020-12-15 17:49:51 -05:00
marianomartin
cbef0d3c1b [TimePicker] Change text input view to a view stub
PiperOrigin-RevId: 347387465
2020-12-14 15:10:26 -05:00
marianomartin
074ed18255 [TimePicker] Remove hint setting
PiperOrigin-RevId: 345071902
2020-12-02 10:07:59 -05:00
marianomartin
9f791574ec [TimePicker] Use MaterialColors to correctly read CSLs with theme attributes
PiperOrigin-RevId: 345068246
2020-12-02 10:00:18 -05:00
Sasikanth Miriyampalli
890b727dcb [MaterialTimePicker] Make default theme overlay public
Resolves https://github.com/material-components/material-components-android/pull/1892

GIT_ORIGIN_REV_ID=da647ca589d4da3f2cebcfaef422ff7504296f09
PiperOrigin-RevId: 344275691
2020-11-29 11:12:58 -05:00
Sasikanth Miriyampalli
c6351c45d6 [MaterialTimePicker] Fixed typo in TextAppearance.MaterialComponents.TimePicker.Title
Resolves https://github.com/material-components/material-components-android/pull/1858

GIT_ORIGIN_REV_ID=c4ff46a1d0400da631df37537e9e610b3cae3c01
PiperOrigin-RevId: 341608315
2020-11-10 11:11:39 -05:00
hunterstich
6ad8301fb6 [I18n] Update string translations
PiperOrigin-RevId: 340622036
2020-11-04 11:22:36 -05:00
isabellekim
22467b4994 [TimePicker] Add default style attribute (materialClockStyle) to the time picker theme overlay for the clock face and clock hand, making all colors on the clock customizable.
materialClockStyle respects the following attributes:
+ clockFaceBackgroundColor: color of the clock face
+ clockHandColor: color of the clock hand
+ clockNumberTextColor: color of the numbers on the clock (CSL, selected state is used on top of the clockHandColor)

PiperOrigin-RevId: 339469022
2020-10-29 15:16:28 -04:00
isabellekim
7ef5308c14 [TimePicker] Update title color to be in typography.
PiperOrigin-RevId: 338666608
2020-10-23 12:30:36 -07:00
marianomartin
37c7f26793 [TimePicker] Increased touch target size of AM/PM toggle
PiperOrigin-RevId: 338328586
2020-10-21 15:55:50 -07:00
marianomartin
4aeb6a9dbb [TimePicker] Update image button appearance
PiperOrigin-RevId: 338316939
2020-10-21 15:54:20 -07:00
isabellekim
eec282bc05 [TimePicker] Moved TimePicker.Button style to MaterialTimePicker theme overlay.
PiperOrigin-RevId: 337536394
2020-10-19 05:55:37 -07:00
marianomartin
8da7336e89 [TimePicker] Added a style for timepicker to customize icons
PiperOrigin-RevId: 337525216
2020-10-19 05:54:54 -07:00
marianomartin
172e7ba710 [TimePicker] Added a style for the input mode button
PiperOrigin-RevId: 337513706
2020-10-19 05:50:35 -07:00
marianomartin
73031815ad [TimePicker] Added Theme Overlay to set default styles for widgets
PiperOrigin-RevId: 337338438
2020-10-15 13:42:16 -07:00
Material Design Team
b7bca363ae Automated g4 rollback of changelist 337164724
PiperOrigin-RevId: 337179972
2020-10-15 13:30:57 -07:00
marianomartin
e619132cbd [TimePicker] Added themoverlay to set default styles for widgets
PiperOrigin-RevId: 337164724
2020-10-15 13:30:13 -07:00
isabellekim
1cc34a09c7 [TimePicker] Update ripple color on the mode button for time picker to be based on the content color.
PiperOrigin-RevId: 337103634
2020-10-15 13:26:19 -07:00
connieshi
6951bd5179 [Chip] Support elevation overlay.
Resolves https://github.com/material-components/material-components-android/issues/1749

PiperOrigin-RevId: 336930100
2020-10-15 13:21:17 -07:00
Gabriele Mariotti
98c090dd3f [MaterialTimePicker] Changed dimens according to spec
Resolves https://github.com/material-components/material-components-android/pull/1743

GIT_ORIGIN_REV_ID=1cfa9c620286b6d35838f470f9bf20d8687f9296
PiperOrigin-RevId: 336135983
2020-10-15 12:30:26 -07:00
dniz
0ba1ecf78b [TimePicker] Updated some strings translations for i18n
PiperOrigin-RevId: 335419194
2020-10-08 15:49:25 +00:00
dniz
c1a290edb9 [TimePicker] Added string translations for i18n / l10n
PiperOrigin-RevId: 334795547
2020-10-01 11:28:21 -04:00
marianomartin
9f3feeacad [TimePicker] Changed title to use right text appearance attr
PiperOrigin-RevId: 334688009
2020-10-01 11:26:22 -04:00
Gabriele Mariotti
a4b008e742 [MaterialTimePicker] Fixed ClassCastException with a Bridge Theme
Resolves https://github.com/material-components/material-components-android/pull/1736

GIT_ORIGIN_REV_ID=c94c507b222fc8b1d97fb2018f65acbcbc9ce90b
PiperOrigin-RevId: 334674979
2020-09-30 17:19:29 -04:00
dniz
2f9c2b0491 [Cleanup] Fix formatting of copyrights in xml
PiperOrigin-RevId: 334423264
2020-09-29 16:34:51 -04:00
marianomartin
bad81310d3 [TimePicker] Added the ability to switch to text input mode when double tapping the selected number
PiperOrigin-RevId: 334385102
2020-09-29 09:18:23 -07:00
marianomartin
4fa13416ec [TimePicker] Added content description to button to switch input modes
PiperOrigin-RevId: 333398589
2020-09-24 09:00:07 -07:00
marianomartin
91c972c7f3 [MaterialTimePicker] Added setters for the title string
PiperOrigin-RevId: 332028135
2020-09-16 11:47:20 -07:00
marianomartin
c0be2c0cb1 [MaterialTimePicker] Documented hour and minutes ranges
PiperOrigin-RevId: 331209662
2020-09-15 09:20:55 -07:00
marianomartin
0aed26b8b7 [TimePicker] Changed positive listener to be an OnClickListener
PiperOrigin-RevId: 328539995
2020-08-26 17:39:31 -04:00
marianomartin
a543032c99 [TimePicker] Support formatting the numbers depending on the configuration locale
PiperOrigin-RevId: 327666353
2020-08-20 16:47:25 -04:00
marianomartin
dbbd27cefc [TimePicker] Removed newInstance method in favor of Builder Class
Resolves https://github.com/material-components/material-components-android/issues/1512

PiperOrigin-RevId: 324248187
2020-07-31 15:42:47 -04:00
Gabriele Mariotti
2ccc71624e [TimePicker] Added listeners
Resolves https://github.com/material-components/material-components-android/pull/1517

GIT_ORIGIN_REV_ID=be2559a45bff94592537183d46659df5a2a91056
PiperOrigin-RevId: 324215552
2020-07-31 15:05:17 -04:00
marianomartin
5f9aa7f622 [TimePicker] Fixed size on edit text smaller than on chip button
PiperOrigin-RevId: 324208729
2020-07-31 11:23:20 -04:00
marianomartin
dd254c536a [TimePicker] Fixed incorrect offset applied to shaders
Resolves https://github.com/material-components/material-components-android/issues/1537

PiperOrigin-RevId: 323783957
2020-07-29 10:42:12 -04:00
marianomartin
8ea36ae200 [TimePicker] Removed checkable from timepicker mode button
PiperOrigin-RevId: 323616442
2020-07-29 09:16:41 -04:00
marianomartin
162205b9df [TimePicker] Fixed exception when shrinkResources is enabled
Resolves https://github.com/material-components/material-components-android/issues/1508

PiperOrigin-RevId: 323018869
2020-07-27 13:20:06 -04:00
marianomartin
b92261f847 [TimePicker] Fix lint issue with edit texts
PiperOrigin-RevId: 322804881
2020-07-23 12:48:18 -04:00
marianomartin
84cec15fbd [TimePicker] Fixed Talback support
PiperOrigin-RevId: 322589365
2020-07-22 14:24:23 -04:00
marianomartin
702c201508 [TimePicker] Renamed classes to match MaterialDatePicker
PiperOrigin-RevId: 320993387
2020-07-15 09:45:57 -07:00
marianomartin
ffdb90fd3d [TimePicker] Improved theming
PiperOrigin-RevId: 320382415
2020-07-10 11:32:53 -07:00
marianomartin
272ce50950 [TimePicker] Renamed radius attr to avoid conflicts
PiperOrigin-RevId: 319985243
2020-07-08 14:59:44 -04:00
marianomartin
42aa5015a2 [TimePicker] Added a theme attribute
PiperOrigin-RevId: 319977105
2020-07-07 10:59:37 -04:00
marianomartin
a6935dc73d [TimePicker] Added haptic feedback
PiperOrigin-RevId: 319287390
2020-07-06 11:09:40 -04:00
marianomartin
3960a13a85 [TimePicker] Update toggle constraints on visibility changed
PiperOrigin-RevId: 319082558
2020-06-30 16:10:53 -04:00