96 Commits

Author SHA1 Message Date
Material Design Team
703249d872 [MaterialTimePicker] Properly align text vertically in MaterialTimePicker on S+.
PiperOrigin-RevId: 448541243
2022-05-13 15:01:43 -04:00
pekingme
269830e94e [Shape][TimePicker] Clean up shape appearance hardcoded in layout files.
PiperOrigin-RevId: 448297165
2022-05-12 17:21:53 -04:00
pubiqq
5d6678cc66 [MaterialDatePicker] Hide the keyboard when switching to calendar mode
Resolves https://github.com/material-components/material-components-android/pull/2688
Resolves https://github.com/material-components/material-components-android/issues/2687

GIT_ORIGIN_REV_ID=686526aa049eadb08ded72ca9eb0b60027358756
PiperOrigin-RevId: 447819486
2022-05-11 09:41:38 -04:00
pfthomas
f302da7401 [TimePicker] Migrate to new shape system
PiperOrigin-RevId: 446302694
2022-05-04 18:26:34 -04:00
dsn5ft
8c775cb418 [i18n][Date/Time Picker] Update date and time picker translation strings
Resolves https://github.com/material-components/material-components-android/issues/2655
Resolves https://github.com/material-components/material-components-android/pull/2656

PiperOrigin-RevId: 445930808
2022-05-02 11:44:04 -04:00
pubiqq
7109aa4b8b [i18n][Date/Time Picker] Use regular strings instead of @android:string/* which can have translation issues
Resolves https://github.com/material-components/material-components-android/issues/2655
Resolves https://github.com/material-components/material-components-android/pull/2656

PiperOrigin-RevId: 444574063
2022-04-26 12:02:43 -04:00
dsn5ft
b62b9a50b0 [Gradle] Update library source and target compatibility to Java 8 and add lambda + method reference usage
PiperOrigin-RevId: 443370295
2022-04-21 16:29:39 -04:00
conradchen
431e291b01 [Translation] Update string translations
PiperOrigin-RevId: 443191056
2022-04-20 17:19:02 -04:00
conradchen
72abed042f [TimePicker] Restore hour/minute selection when switch to text mode
This also opens the keyboard automatically when switching the input mode.

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

PiperOrigin-RevId: 443096864
2022-04-20 14:04:46 -04:00
pfthomas
5b78bf4896 [MaterialTimePicker][a11y] Fix label for hour/minute EditTexts.
PiperOrigin-RevId: 443080572
2022-04-20 13:39:25 -04:00
pfthomas
0ba0d6540a [MaterialTimePicker][a11y] Make label important for accessibility
PiperOrigin-RevId: 437326760
2022-03-28 16:46:50 +00:00
pfthomas
a51d1dcb68 [MaterialTimePicker][a11y] Update accessibility className used for hour/minute Chips
PiperOrigin-RevId: 436207977
2022-03-21 18:53:24 +00:00
pfthomas
380778f992 [MaterialTimePicker][a11y] Give more context on hour/minute selection
PiperOrigin-RevId: 435119125
2022-03-16 19:31:02 +00:00
pfthomas
1b14715cde [MaterialTimePicker][a11y] Prevent TalkBack from announcing unavailable action
PiperOrigin-RevId: 432453483
2022-03-04 16:59:26 -05:00
pfthomas
47781d58b7 [MaterialTimePicker][a11y] Fix TalkBack announcing wrong selection between hour/minute
PiperOrigin-RevId: 432440771
2022-03-04 16:52:36 -05:00
pfthomas
9cdf4c9559 [MaterialTimePicker][a11y] Fix wrong clock item selection
PiperOrigin-RevId: 431938695
2022-03-02 14:19:28 -08:00
pfthomas
85a44054f3 [MaterialTimePicker] Add setters for hour and minute
Resolves https://github.com/material-components/material-components-android/issues/2515

PiperOrigin-RevId: 428563049
2022-02-15 19:24:16 +00:00
pfthomas
f9914da4e9 [TimePicker][a11y] Fix Switch Access can't reach clock items
PiperOrigin-RevId: 425684600
2022-02-01 13:56:37 -08:00
pfthomas
fcc68a2de7 [TimePicker][a11y] Make Talkback announce selected state for clock items
PiperOrigin-RevId: 413955068
2021-12-06 19:44:45 +00:00
Material Design Team
a487c89185 Internal change
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
pfthomas
c07e5f2c36 [TimePicker][a11y] Fix Talkback doesn't announce minutes selection
PiperOrigin-RevId: 408921292
2021-11-10 17:00:22 -05:00
pfthomas
38406e15a5 [TimePicker][a11y] Make Talkback announce action on clock items
PiperOrigin-RevId: 408660379
2021-11-10 16:09:26 -05:00
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