74 Commits

Author SHA1 Message Date
dsn5ft
3a57f5d58b [TimePicker] Attempt to fix onDoubleTap() NullPointerException
PiperOrigin-RevId: 404651939
2021-10-21 18:54:41 +00:00
pekingme
9de9319b1e [Resources] Added styles in res-public.
PiperOrigin-RevId: 403451624
2021-10-18 15:31:13 -04:00
dsn5ft
93cdd95d6a [TimePicker] Make MaterialTimePicker implement OnDoubleTapListener interface instead of instantiating anonymous inner class
PiperOrigin-RevId: 403415529
2021-10-18 12:37:06 -04:00
conradchen
841fe974f0 [M3][TimePicker] Unify the theme/style names of time pickers
Renames all Material3.TimePicker.* to Material3.MaterialTimePicker.*.

PiperOrigin-RevId: 402844038
2021-10-13 16:39:56 -04:00
pfthomas
e906367de5 [MaterialTimePicker] Fix showing keyboard requires 2 taps in text input mode
PiperOrigin-RevId: 402567146
2021-10-12 11:43:03 -04:00
pfthomas
228ad853f4 [TimePicker][Accessibility] Announce time has changed after clock selection
PiperOrigin-RevId: 402557800
2021-10-12 11:41:55 -04:00
nikhiljainlive
0181029efb [MaterialTimePicker] Fix Input mode is not changed when keyboard icon is clicked when the app is returned from background
Resolves https://github.com/material-components/material-components-android/pull/2419

GIT_ORIGIN_REV_ID=80ba4c214cbd565ad461bef80fb9ae01b8671a0e
PiperOrigin-RevId: 402550766
2021-10-12 11:40:24 -04:00
conradchen
cde684ab42 [DatePicker][TimePicker] Replace confirm button strings
On certain Android devices it seems the framework string @android:string/ok is not available. Replaces the usage of the strings with Material specific strings.

Resolves https://github.com/material-components/material-components-android/issues/1346

PiperOrigin-RevId: 400814492
2021-10-05 09:05:36 -04:00
conradchen
168c69189e [TimePicker] Add ability to customize positive and negative button
Resolves https://github.com/material-components/material-components-android/issues/2275

PiperOrigin-RevId: 398010381
2021-09-23 19:15:42 +00:00
pfthomas
00c0df9e7d [TimePicker][Accessibility] Send accessibility event when updating input mode
PiperOrigin-RevId: 397080648
2021-09-20 09:31:49 -07:00
conradchen
06328c05ba [M3][TimePicker] Update time picker dev doc with M3 themes/styles
PiperOrigin-RevId: 395927842
2021-09-15 12:32:27 -07:00
conradchen
a1d09aca2e [M3][TimePicker] Create M3 styles
PiperOrigin-RevId: 392670393
2021-08-24 15:49:01 -04:00
conradchen
2dfa3d6906 [TimePicker] Clean-up TextApprearance overriding
1. Creates a new attribute so we don't have to override existing TextAppearance attributes.
2. Removes unnecessary TextAppearance attributes overriding.

PiperOrigin-RevId: 392465193
2021-08-24 15:37:18 -04:00
dsn5ft
5d940f1ff8 [M3][Catalog] Update Catalog theme(s) to Material3 and fix Material3 date/time picker theme overlays
PiperOrigin-RevId: 391581833
2021-08-23 09:17:02 -07:00
dsn5ft
45f4fa0ac8 [MaterialTimePicker] Add some defensive null checks for internal views
PiperOrigin-RevId: 390608782
2021-08-16 13:43:58 -07:00
dsn5ft
57e3bc02fa [i18n] Updated some string translations for date picker, time picker, and text field
PiperOrigin-RevId: 389899697
2021-08-10 21:08:28 -07:00
conradchen
35c2af3c2d [TimePicker] Hide cancel button when it's not cancelable
Resolves https://github.com/material-components/material-components-android/issues/2245

PiperOrigin-RevId: 381268475
2021-06-28 12:54:41 -07:00
conradchen
b420eab0bc [TimePicker] Make display divider styling more flexible
PiperOrigin-RevId: 373818786
2021-05-14 15:32:10 -04:00
conradchen
818f253ade [MaterialTimePicker] Make time text input fields stying more flexible
PiperOrigin-RevId: 373199267
2021-05-14 15:20:30 -04:00
conradchen
b38a09f93e Automated g4 rollback of changelist 369683837
PiperOrigin-RevId: 369704013
2021-04-22 14:53:14 -04:00
Material Design Team
3891ca6c57 Automated g4 rollback of changelist 369658517
PiperOrigin-RevId: 369683837
2021-04-21 14:46:06 -04:00
conradchen
f617557ff9 [Color] Fix elevation overlay on time pickers
PiperOrigin-RevId: 369658517
2021-04-21 14:44:36 -04:00
Anoop
64164677a9 [Material TimePicker] Added setTheme api in builder to support passing theme via builder
Resolves https://github.com/material-components/material-components-android/pull/2098

GIT_ORIGIN_REV_ID=688015d7a73fa28478e34da40363ac9c5730d677
PiperOrigin-RevId: 363648438
2021-03-18 12:51:22 -04:00
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