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
raajkumars
712a2ce920
[datepicker]Fixed issue that causes the Datepicker to highlight the wrong day as today.
...
Resolves https://github.com/material-components/material-components-android/issues/882
PiperOrigin-RevId: 315317701
2020-06-08 16:32:12 -04:00
dniz
7965098849
[MaterialDatePicker] Disable positive button when invalid or incomplete dates are selected
...
Resolves https://github.com/material-components/material-components-android/issues/1270
Resolves https://github.com/material-components/material-components-android/pull/1271
PiperOrigin-RevId: 313390751
2020-05-27 13:59:38 -04:00
dniz
67e9eaf341
[MaterialDatePicker] Fix check for date input keyboard separator characters for single selection mode
...
Pointed out in d6b2da8b50 (r39471904)
PiperOrigin-RevId: 313382685
2020-05-27 13:50:17 -04:00
raajkumars
b546cbd3ed
Updated UtcDates class in datepicker implementation to allow injection of TimeSource instead of directly using Calendar.getInstance().
...
PiperOrigin-RevId: 312715093
2020-05-21 16:54:41 -04:00
dniz
0bdb2cbdbd
[MaterialDatePicker] Make customDatePicker method public but restricted for now
...
PiperOrigin-RevId: 312495780
2020-05-20 17:11:37 -04:00
dniz
d854e78d54
[MaterialDatePicker] Hide customDatePicker method since DateSelector API is not exposed yet. We will consider exposing this method and the DateSelector APIs in 1.3.
...
PiperOrigin-RevId: 312332065
2020-05-19 18:49:32 -04:00
raajkumars
d2f81cae5a
Fixed issue that causes the Datepicker to highlight wrong the day as today.
...
Resolves https://github.com/material-components/material-components-android/issues/882
PiperOrigin-RevId: 310565860
2020-05-08 15:27:44 -04:00
raajkumars
2023df01b3
Renamed Month.today() to Month.current() to make it obvious that this method returns the first moment of the current month and not the first moment of the current day.
...
PiperOrigin-RevId: 310417056
2020-05-08 14:43:12 -04:00
hunterstich
a265520e42
[MaterialDatePicker] Update datepicker drawable resources to use material_ prefix.
...
Resolves https://github.com/material-components/material-components-android/issues/1166
PiperOrigin-RevId: 305078908
2020-04-06 13:26:41 -07:00
Material Design Team
e6e9a07f4b
Automated g4 rollback of changelist 305014223
...
PiperOrigin-RevId: 305017071
2020-04-06 12:47:42 -07:00
hunterstich
2ac7fb75df
[MaterialDatePicker] Prefix drawables with mtrl_ to avoid client confliects.
...
Resolves https://github.com/material-components/material-components-android/issues/1166
PiperOrigin-RevId: 305014223
2020-04-06 12:34:43 -07:00
marianomartin
f90181efef
Fix javadocs errors for DatePicker, Transformation, and FAB
...
PiperOrigin-RevId: 300553804
2020-03-13 11:00:54 -04:00
marianomartin
5706775bfd
Expose customDatePicker so people don't have to limit to range or
...
single date.
Resolves https://github.com/material-components/material-components-android/issues/893
PiperOrigin-RevId: 297875559
2020-02-28 15:12:40 -05:00
marianomartin
e664b98062
[MaterialDatePicker] Crash - Scroll to Min Year of CalendarConstraint
...
Resolves https://github.com/material-components/material-components-android/pull/981
Resolves https://github.com/material-components/material-components-android/issues/980
PiperOrigin-RevId: 296000173
2020-02-19 13:36:30 -05:00
Felipe Roriz
4ccb052d2b
[MaterialDatePicker] Added a DateValidator for a bounded range.
...
Resolves https://github.com/material-components/material-components-android/pull/972
GIT_ORIGIN_REV_ID=29cbbd569f5284f0bdf4cc1bdad60f93f92856eb
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 295810824
2020-02-18 18:03:44 -05:00
onats1
89e0e5628e
[Date Picker] Created a date validator class to handle resctrictions from previous dates until the current date.
...
Resolves https://github.com/material-components/material-components-android/pull/946
GIT_ORIGIN_REV_ID=442df27d6bd2d7c01de471328ba3a44eff82660d
Co-authored-by: ymarian <38727469+ymarian@users.noreply.github.com>
PiperOrigin-RevId: 294982034
2020-02-13 13:57:28 -08:00
klblk
a67932de13
[MaterialDatePicker] Change to standalone month format
...
Resolves https://github.com/material-components/material-components-android/pull/1000
GIT_ORIGIN_REV_ID=24a02c2ce3daa40add8f1ec3bbd6860fcc4b6be1
PiperOrigin-RevId: 294516910
2020-02-12 10:13:32 -05:00
haodong
d6b2da8b50
[DatePicker] Added workaround for Samsung and LG devices to show URL keyboard when enter date in text.
...
PiperOrigin-RevId: 294219052
2020-02-10 14:31:45 -05:00
isabellekim
840a809715
Remove TODO bug reference.
...
PiperOrigin-RevId: 292337224
2020-01-31 11:12:21 -05:00
marianomartin
33733bd331
Remove {@link Month}`s from javadocs
...
PiperOrigin-RevId: 292335010
2020-01-31 11:11:22 -05:00
haodong
b1c4f539e1
Made LG devices exceptions for using date type of keyboard for date picker text input.
...
Resolves https://github.com/material-components/material-components-android/issues/901
- Check if the device is LG, and change the keyboard type if yes.
- Remove the exception for Samsung devices, they updated their date type keyboard with "." and "/".
PiperOrigin-RevId: 290753487
2020-01-21 09:13:23 -08:00
zkovar
0e6c21d3c0
[MaterialDatePicker] Ability to Start Picker in MaterialTextInputPicker Mode
...
Resolves https://github.com/material-components/material-components-android/pull/867
Resolves https://github.com/material-components/material-components-android/issues/865
GIT_ORIGIN_REV_ID=de3f50710c06d17331d366eb9b4d240ec205a1f8
Co-authored-by: pekingme <pekingme@gmail.com>
PiperOrigin-RevId: 289676795
2020-01-14 11:00:51 -08:00
dniz
4e0a016d07
Update MaterialDatePicker to read colorSurface from correct context
...
Fixes issue where colorSurface from materialCalendarTheme is ignored
Resolves https://github.com/material-components/material-components-android/issues/838
PiperOrigin-RevId: 286194512
2019-12-18 15:55:09 -05:00
haodong
6694175a5f
Fixed getDayCopy utility function in UtcDates for DatePicker.
...
- was copying year/month/date fields between Calendar objects in different time zones.
- convert input Calendar object into a Calendar object in UTC, then copy year/month/date fields to the return Calendar object.
PiperOrigin-RevId: 284597830
2019-12-10 07:22:59 -05:00
haodong
77ce281f04
Fixed MaterialDatePicker todayInUtcMilliseconds method.
...
- Used UtcDates to return the UTC milliseconds of today in local timezone.
- Previous method is replaced with thisMonthInUtcMilliseconds, which fits its function better.
Resolves https://github.com/material-components/material-components-android/issues/778
PiperOrigin-RevId: 283981946
2019-12-05 15:58:26 -05:00
ldjesper
e56db0cee9
Update CHAR_LIMIT to 2 for MaterialCalendar strings that require a sub-character for i18n
...
PiperOrigin-RevId: 280474887
2019-11-15 15:10:57 -05:00
ldjesper
62a2164f18
Include separator characters for Samsung devices in MaterialDatePicker
...
Resolves https://github.com/material-components/material-components-android/issues/682
PiperOrigin-RevId: 279146671
2019-11-07 16:12:20 -05:00
ldjesper
c097d3d335
Separate date format string from date hint string in MaterialDatePicker for better hints.
...
Resolves https://github.com/material-components/material-components-android/issues/695
PiperOrigin-RevId: 279095896
2019-11-07 16:10:05 -05:00
haodong
7708ca4db1
Automated g4 rollback of changelist 277103254
...
PiperOrigin-RevId: 277545348
2019-11-01 13:28:40 -07:00
Nikita
b575fc78dd
Improve scroll behavior of MaterialCalendar on low end devices
...
Resolves https://github.com/material-components/material-components-android/pull/711
GIT_ORIGIN_REV_ID=7808f83d1c4de45711aae4c5f1740506b5484c1c
PiperOrigin-RevId: 277201251
2019-11-01 13:28:40 -07:00
haodong
5db6b5f2f8
Automated g4 rollback of changelist 275944003
...
PiperOrigin-RevId: 277103254
2019-11-01 13:28:40 -07:00
haodong
8c8eaac2b1
Automated g4 rollback of changelist 275859720
...
PiperOrigin-RevId: 275944003
2019-11-01 13:28:40 -07:00
haodong
69e399f9c4
Updated TextInputLayout to support empty string as error message.
...
PiperOrigin-RevId: 275859720
2019-11-01 13:28:40 -07:00
ldjesper
394bac6be0
Add MaterialDatePicker style and theme attributes to public.xml
...
Resolves https://github.com/material-components/material-components-android/issues/664
PiperOrigin-RevId: 273854001
2019-10-10 15:53:13 -04:00
ldjesper
9cd22eb30a
Sentence case all non-titles in MaterialDatePicker
...
PiperOrigin-RevId: 273592300
2019-10-10 15:50:29 -04:00
ldjesper
6e0307248e
Update renamed private String GRID_SELECTOR_KEY to renamed class (DateSelector) in MaterialDatePicker
...
PiperOrigin-RevId: 269875653
2019-09-20 10:57:25 -04:00