Material Design Team
a487c89185
Internal change
...
PiperOrigin-RevId: 412135443
2021-11-29 17:35:39 +00:00
conradchen
fba1a341c3
[M3][DatePicker] Fix M3 date picker styles
...
Some attributes were wrongly added to the styles. We need to remove them to make the color correct.
PiperOrigin-RevId: 409241943
2021-11-16 12:33:57 -05:00
leticiars
9b5356f2fe
[DatePicker] Wrapped text fields from range picker selection in a ScrollView so their heights don't change in landscape mode.
...
PiperOrigin-RevId: 408333813
2021-11-10 15:57:22 -05:00
Gabriele Mariotti
b2fbacecd4
[MaterialDatePicker] added methods to use custom text for positive and negative button
...
Resolves https://github.com/material-components/material-components-android/pull/1607
GIT_ORIGIN_REV_ID=75093200ddeae117ae57a3e89e28d109f520ec8d
PiperOrigin-RevId: 407376627
2021-11-04 10:53:04 -04:00
dsn5ft
9ae56ceedd
[Javadocs] Remove all broken attr links from Javadocs
...
PiperOrigin-RevId: 404246710
2021-10-20 19:06:18 +00: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
ca09b7b04b
[M3][DatePicker] Fix month naviation button alignment
...
With MaterialButton, if we want an icon to be center aligned when there's no text, we need to set icon padding to 0dp and icon gravity to text-start or text-end. Updates the M3 style to make the icon center aligned.
Resolves https://github.com/material-components/material-components-android/issues/2388
PiperOrigin-RevId: 400242967
2021-10-04 20:20:19 +00:00
conradchen
6626eed5c1
[M3][DatePicker] Update date picker dev doc with M3 themes/styles
...
Also adds missed text appearance attribute.
PiperOrigin-RevId: 396396263
2021-09-16 11:33:23 -07:00
conradchen
83e73de6b8
[M3][DatePicker] Update date picker title typography
...
PiperOrigin-RevId: 396385304
2021-09-16 11:32:42 -07:00
Orthae
8fda897e1d
[MaterialDatePicker] Fix excessive whitespace
...
Resolves https://github.com/material-components/material-components-android/pull/2162
Resolves https://github.com/material-components/material-components-android/issues/2161
GIT_ORIGIN_REV_ID=9d272c4563f354bedcb0342957ebb2207bceecdf
PiperOrigin-RevId: 394235301
2021-09-01 17:06:14 -04:00
conradchen
2901012af5
[M3][DatePicker] Create M3 styles
...
PiperOrigin-RevId: 392982386
2021-08-26 14:43:23 -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
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
pfthomas
47868d884e
[DatePicker] Date selector hint incorrectly localized
...
PiperOrigin-RevId: 387066584
2021-07-29 14:28:10 -04:00
conradchen
cb5d622f13
[DatePicker] Avoid NPE caused by getSelection() before created
...
Resolves https://github.com/material-components/material-components-android/issues/2169
PiperOrigin-RevId: 381325077
2021-06-28 13:00:18 -07:00
conradchen
eb7b11478b
[DatePicker] Fix opening at the selected date in the end month
...
When the selected date is in the end month, the UTC timestamp of it
will be larger than the end month's, which cause us incorrectly
treat the selected date as invalid.
Fixes the logic by consistently use Month as the time unit to do
comparison.
Resolves https://github.com/material-components/material-components-android/issues/2101
PiperOrigin-RevId: 381280448
2021-06-28 12:56:36 -07:00
conradchen
281688a2f2
[DatePicker] Fix DatePicker crashes and and potential issue of range selection
...
GridView used to display days in months can be scrolled when there are more rows
than the space can contain. Usually this happens when a month spans over 6 rows. In this case, the position of the day in a month will not be the same as its corresponding view position in the grid view. This can cause:
1. Wrong day view being highlighted.
2. Crashes due to out-of-bound index. (The day position can be larger than view
counts due to invisible days.)
PiperOrigin-RevId: 379382943
2021-06-15 21:56:07 -07:00
conradchen
37f0ca1a97
[MaterialDatePicker] Make calendar day of week label stying more flexible
...
PiperOrigin-RevId: 372976792
2021-05-11 12:56:55 -04:00
haodong
0d0c90b9ef
Updated string translations.
...
PiperOrigin-RevId: 354978993
2021-02-01 11:03:44 -08:00
hunterstich
db42490dde
[DatePicker] Fixed incorrect date being selected on scrollable months.
...
Resolves https://github.com/material-components/material-components-android/issues/1973
PiperOrigin-RevId: 351396382
2021-01-12 18:37:48 -05:00
Mika
00e33202a5
[DatePicker] Fix NullPointerException on MonthAdapter.updateSelectedState(MonthAda…
...
Resolves https://github.com/material-components/material-components-android/pull/1944
Resolves https://github.com/material-components/material-components-android/issues/1943
GIT_ORIGIN_REV_ID=d02d6307ea08ea505ea6535ce909e7d1b268847b
PiperOrigin-RevId: 350783859
2021-01-08 13:50:58 -05:00
marianomartin
3e79942871
[DatePicker] Localized numbers in month
...
Resolves https://github.com/material-components/material-components-android/issues/1948
PiperOrigin-RevId: 350567674
2021-01-07 12:10:44 -05:00
marianomartin
bec2de92ac
[DatePicker] Fixed day of week adapter localization for APIs before O
...
Resolves https://github.com/material-components/material-components-android/issues/1948
PiperOrigin-RevId: 350474335
2021-01-07 12:06:34 -05:00
hunterstich
6ad8301fb6
[I18n] Update string translations
...
PiperOrigin-RevId: 340622036
2020-11-04 11:22:36 -05:00
dniz
90929ee274
[MaterialDatePicker] Fixed overzealous smooth scrolling when horizontally swiping between months
...
Resolves https://github.com/material-components/material-components-android/issues/920
PiperOrigin-RevId: 337879242
2020-10-19 11:43:33 -07:00
Material Design Team
ffcf70adde
[DatePicker] Changes to allow the MaterialCalendar to exist inside a scrollable view.
...
PiperOrigin-RevId: 336952059
2020-10-15 13:23:12 -07:00
dniz
d82742695c
[DatePicker] Update header title strings to match spec
...
PiperOrigin-RevId: 334794175
2020-10-01 11:27:11 -04:00
dniz
98c7cd15ee
[DatePicker] Fixed formatting of year month date pattern for year selection dropdown
...
PiperOrigin-RevId: 334616659
2020-09-30 17:00:29 -04:00
dniz
af375eb31a
[DatePicker] Added string translations for i18n / l10n
...
Resolves https://github.com/material-components/material-components-android/issues/761
Resolves https://github.com/material-components/material-components-android/issues/868
Resolves https://github.com/material-components/material-components-android/issues/1216
Resolves https://github.com/material-components/material-components-android/issues/1353
Resolves https://github.com/material-components/material-components-android/issues/1764
PiperOrigin-RevId: 334440771
2020-09-29 16:39:24 -04:00
dniz
2f9c2b0491
[Cleanup] Fix formatting of copyrights in xml
...
PiperOrigin-RevId: 334423264
2020-09-29 16:34:51 -04:00
dniz
8f455c0b90
[DatePicker] Fixed issue where default selection date would visually stay selected when choosing different date
...
PiperOrigin-RevId: 334167845
2020-09-28 11:49:51 -07:00
dniz
5507687b19
[DatePicker] Updated default selection-based openAt logic to consider valid calendar constraints
...
Fixes crash where default selection is outside of calendar constraints bounds. With this commit, in that case we now show the default selection date in the header, but the user can still only choose a new date within the constraints.
Follow-up to:
- https://github.com/material-components/material-components-android/pull/1651
- https://github.com/material-components/material-components-android/issues/1199
PiperOrigin-RevId: 332455279
2020-09-18 14:02:24 -07:00
Gabriele Mariotti
ea763862b4
[MaterialDatePicker] Fixed the filled range with RTL layout
...
Resolves https://github.com/material-components/material-components-android/pull/1731
GIT_ORIGIN_REV_ID=6be1c14b2f4a93d180ffe1f760cec5f277f03613
PiperOrigin-RevId: 332245028
2020-09-17 11:10:37 -07:00
marianomartin
5541f027d2
[DatePicker] Delay showing validation error by 1 second
...
PiperOrigin-RevId: 332116212
2020-09-17 11:08:20 -07:00
cketcham
c65a26281b
[DatePicker] Updates the color of the month labels in fullscreen mode
...
PiperOrigin-RevId: 331017575
2020-09-11 14:26:09 -04:00
Gabriele Mariotti
193ce2dc48
[DatePicker] Changed openAt to default based on selection, if not provided
...
Resolves https://github.com/material-components/material-components-android/pull/1651
GIT_ORIGIN_REV_ID=09bf7a4ddb3cba2e55efaab45f09765e7910544b
PiperOrigin-RevId: 330938479
2020-09-10 11:15:59 -04:00
cketcham
bf86d82e61
[DatePicker] Allow for styling dialog close icon color for full screen dialog
...
PiperOrigin-RevId: 330739711
2020-09-10 11:11:43 -04:00
Gabriele Mariotti
85739c7e05
[MaterialDatePicker] Added a datevalidator for multiple range
...
Resolves https://github.com/material-components/material-components-android/pull/1622
GIT_ORIGIN_REV_ID=a125081ffc609b969f841cd7a830f35d17861ee9
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 330725106
2020-09-09 11:25:13 -04:00
cketcham
6cb28b927b
[DatePicker] Update month and year navigation to use the correct color
...
PiperOrigin-RevId: 328774367
2020-08-28 10:10:06 -04:00
Material Design Team
431e092649
[DatePicker] Made some MaterialCalendar related methods/classes public, but still restricted.
...
PiperOrigin-RevId: 326494150
2020-08-13 16:53:54 -04:00
Material Design Team
fb23efff45
[DatePicker] Allow RangedDateSelectors with multiples ranges in different months to be shown correctly.
...
PiperOrigin-RevId: 326054201
2020-08-11 14:46:48 -04:00
Material Design Team
b12c5c5b00
[DatePicker] Speed up calendar performance by only updating certain views when a day is clicked, instead of recreating and redrawing all of them.
...
PiperOrigin-RevId: 325850735
2020-08-11 14:39:26 -04:00
Gabriele Mariotti
6050bd4347
[MaterialDatePicker] Added placeholder text in text input mode to show date format
...
Resolves https://github.com/material-components/material-components-android/pull/1528
GIT_ORIGIN_REV_ID=a4e436bbbc270d4716f78e9919f50315da75c5b3
PiperOrigin-RevId: 323879097
2020-07-30 00:20:55 -04:00
dniz
b82d41fe55
[MaterialDatePicker] Fixed orientation of next/previous month button icons for RTL languages
...
Resolves https://github.com/material-components/material-components-android/issues/1485
Resolves https://github.com/material-components/material-components-android/pull/1518
Co-authored-by: Mattia <darksoulcyber@hotmail.it>
PiperOrigin-RevId: 323566996
2020-07-28 10:29:58 -04:00
dniz
5bd64f42d3
[DatePicker] Updated text input mode to respect custom theme res id
...
Resolves https://github.com/material-components/material-components-android/issues/966
PiperOrigin-RevId: 322809365
2020-07-27 13:17:42 -04:00
leticiars
d868be243c
[DatePicker] Set min width on the confirm OK button.
...
May fix https://github.com/material-components/material-components-android/issues/1346
PiperOrigin-RevId: 321169998
2020-07-15 09:48:22 -07:00
marianomartin
049ad022a6
Delete components build.gradle files
...
PiperOrigin-RevId: 320944144
2020-07-15 09:38:31 -07:00
marianomartin
811d45216b
[DatePicker] Fixed crash when GridView has not rendered the last child
...
Resovles https://github.com/material-components/material-components-android/issues/1338
PiperOrigin-RevId: 318811845
2020-06-29 16:16:37 -04:00
marianomartin
555356b03f
Internal cleanup
...
PiperOrigin-RevId: 318134343
2020-06-26 14:06:52 -04:00
marianomartin
20e238869c
[Internal] Added a TextWatcherAdapter class
...
PiperOrigin-RevId: 317355871
2020-06-26 13:57:26 -04:00