128 Commits

Author SHA1 Message Date
pekingme
8204856dd4 [Token][Color] Upgraded to v0.170 for tonal surface colors.
PiperOrigin-RevId: 555230534
2023-08-09 19:03:25 +00:00
rightnao
e3b255b3a0 [Docs] Crosslink github docs in javadocs
PiperOrigin-RevId: 546393704
2023-07-11 19:37:37 +00:00
pfthomas
d10201dc88 [MaterialTimePicker] Fix layout getting cut on narrow screens
PiperOrigin-RevId: 544436341
2023-07-05 13:39:33 +00:00
pfthomas
1fcde2c8b2 [MaterialTimePicker] Fix crash when clicking OK/Cancel/Icon on text input mode due to hiding keyboard
PiperOrigin-RevId: 534824218
2023-05-24 14:29:55 +00:00
pekingme
5f542c8946 [TimePicker] Made dialog container color configurable in xml style.
PiperOrigin-RevId: 519184711
2023-03-24 18:08:08 +00:00
pekingme
9f1caa2c64 [Tokens] Upgraded to v0.162.
PiperOrigin-RevId: 517446114
2023-03-20 21:23:07 +00:00
dsn5ft
5689ce2608 [i18n] Update string translations
PiperOrigin-RevId: 513006191
2023-02-28 22:08:20 +00:00
pfthomas
4032a74112 [MaterialDatePicker] Fix keyboard not showing at first in text input mode
Resolves https://github.com/material-components/material-components-android/issues/2747

PiperOrigin-RevId: 511501130
2023-02-23 03:46:22 -08:00
pekingme
23dc14ca3a [Tokens] Updated to v0.157.
PiperOrigin-RevId: 505978081
2023-01-31 20:01:13 +00:00
pfthomas
6f0a953c2b [MaterialTimePicker] Fix NPE
PiperOrigin-RevId: 503974850
2023-01-24 11:54:14 -05:00
pfthomas
7f1def6d3c [MaterialTimePicker] Limit 24h input validation to 23
Resolves https://github.com/material-components/material-components-android/issues/3149

PiperOrigin-RevId: 501869529
2023-01-17 15:14:41 +00:00
pekingme
14fa66a2a9 [TimePicker] Integrated M3 tokens.
PiperOrigin-RevId: 493059854
2022-12-05 15:13:23 -05:00
pfthomas
0c204b8212 [MaterialTimePicker] Fix NumberFormatException
PiperOrigin-RevId: 482810027
2022-10-21 16:31:08 +00:00
pubiqq
6d956edcb9 [MaterialTimePicker] Fix divider alignment on the clock display
Resolves https://github.com/material-components/material-components-android/pull/2952

GIT_ORIGIN_REV_ID=e71f2c67f95008387d999155da65f1b4c5644fb8
PiperOrigin-RevId: 479329867
2022-10-06 17:54:35 +00:00
pfthomas
56ea071320 [MaterialTimePicker] Pre-fill hour and minute edit texts in text input mode
Resolves https://github.com/material-components/material-components-android/issues/2862

PiperOrigin-RevId: 479033062
2022-10-05 14:30:55 +00:00
pfthomas
9806ad99f7 [Internal][MaterialTimePicker] Revert pre-fill hour and minute edit texts in text input mode
PiperOrigin-RevId: 478603180
2022-10-04 20:43:49 +00:00
pfthomas
087da2f2bc [MaterialTimePicker] Pre-fill hour and minute edit texts in text input mode
Resolves https://github.com/material-components/material-components-android/issues/2862

PiperOrigin-RevId: 478507649
2022-10-03 19:16:44 +00:00
pfthomas
15c7128630 [MaterialTimePicker] Fix keyboard not showing at first in text input mode
PiperOrigin-RevId: 478500505
2022-10-03 19:15:55 +00:00
rightnao
a4f6a1e02a [TimePicker] Update motion specs
PiperOrigin-RevId: 472531602
2022-09-08 13:38:52 -04:00
rightnao
7c56473a58 [Translations] Update string translations
PiperOrigin-RevId: 472531245
2022-09-08 13:25:10 -04:00
pubiqq
0dbea2df1a [MaterialTimePicker] Fix text appearance on the clock display
Resolves https://github.com/material-components/material-components-android/pull/2921

GIT_ORIGIN_REV_ID=4b00dddc1a6eac897de71cefa7f45a88113353cf
Co-authored-by: paulfthomas
PiperOrigin-RevId: 470753559
2022-08-29 10:46:43 -07:00
Material Design Team
44cc9b745c Add @CanIgnoreReturnValue to some APIs that return this.
PiperOrigin-RevId: 468721442
2022-08-22 15:22:27 -04:00
pubiqq
60bc025aa9 [TimePicker] Use a single layout for time input
Resolves https://github.com/material-components/material-components-android/pull/2908

GIT_ORIGIN_REV_ID=8feed25d0f0bb4d83a04304250772e9fbed0ae6a
PiperOrigin-RevId: 468529532
2022-08-19 11:00:32 -04:00
pubiqq
16edbb986b [MaterialTimePicker] Fix text and cursor alignment on the clock display
Resolves https://github.com/material-components/material-components-android/pull/2834
Resolves https://github.com/material-components/material-components-android/issues/2832

GIT_ORIGIN_REV_ID=dbd966e3fbf8161aaea9389b14adc178bbbe7aad
Co-authored-by: paulfthomas
PiperOrigin-RevId: 468005512
2022-08-17 14:57:41 -04:00
pubiqq
b3acd17ee4 [MaterialTimePicker] Fix TimePicker appearance for RTL
Resolves https://github.com/material-components/material-components-android/pull/2837
Resolves https://github.com/material-components/material-components-android/issues/2835
Resolves https://github.com/material-components/material-components-android/issues/2836

GIT_ORIGIN_REV_ID=2fa54f683b263c61933469f2bca1cdf81dbddeed
Co-authored-by: paulfthomas
PiperOrigin-RevId: 466986098
2022-08-12 14:59:33 -04:00
pfthomas
eca825fd37 [MaterialTimePicker][a11y] Fix focus when changing input mode
PiperOrigin-RevId: 464622930
2022-08-04 14:29:18 -04:00
pfthomas
ee19b01e2e [MaterialTimePicker][a11y] Update hour content description for 24h clock
PiperOrigin-RevId: 464069391
2022-08-04 13:52:19 -04:00
pfthomas
e9fc0a033a [MaterialTimePicker][a11y] Make Clock text scale with system font size
PiperOrigin-RevId: 464069311
2022-08-04 13:51:37 -04:00
pfthomas
cbc0711ca3 [MaterialTimePicker][24H Redesign] 2-ring support for 24H clock
Resolves https://github.com/material-components/material-components-android/issues/1450

This replaces the current implementation of the 24H clock mode from 1 ring to 2 rings.
The 24H picker now also defaults to text input mode.

PiperOrigin-RevId: 463652374
2022-07-28 17:42:05 -04:00
pubiqq
0c56a45639 [MaterialTimePicker] Refine AM/PM toggle logic
Resolves https://github.com/material-components/material-components-android/pull/2803

GIT_ORIGIN_REV_ID=f5b301b86b8a91189b8199f924b8f837bd7d3fcd
PiperOrigin-RevId: 459256240
2022-07-06 13:08:18 -07:00
pubiqq
1dc0e6b490 [MaterialTimePicker] Fix AM/PM toggle
Before the CL we set AM/PM selection in the listeners no matter the target view (AM/PM) is being checked or being unchecked. So the order of calling listeners of AM and PM can "revert" the selection, if the callback for being unchecked is called later.

This logic is apparently wrong - we should select AM/PM when they are being unchecked anyways.

Resolves https://github.com/material-components/material-components-android/pull/2791
Resolves https://github.com/material-components/material-components-android/issues/2788

GIT_ORIGIN_REV_ID=018e053394f44d6334827fc3f95406c2937ae582
PiperOrigin-RevId: 458027987
2022-07-06 04:51:59 -07:00
pekingme
3fdfb6e230 [I18n] Updated translated strings. We know how to say "Cancel" now :)
PiperOrigin-RevId: 454915686
2022-06-14 12:36:12 -07:00
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