Skip to content

Commit aff6a94

Browse files
paulfthomasimhappi
authored andcommittedSep 2, 2022
[MaterialDatePicker] Update doc to include DayViewDecorator.
PiperOrigin-RevId: 471583125
1 parent d34aa73 commit aff6a94

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎docs/components/DatePicker.md

+8
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ MaterialDatePicker.Builder().datePicker()
9595
.setInputMode(MaterialDatePicker.INPUT_MODE_TEXT)
9696
```
9797

98+
A `DayViewDecorator` can be set allowing customizing the day of month views within the picker ([example of a `DayViewDecorator`](https://github.com/material-components/material-components-android/tree/master/catalog/java/io/material/catalog/datepicker/CircleIndicatorDecorator.java)):
99+
100+
```kt
101+
MaterialDatePicker.Builder().datePicker()
102+
...
103+
.setDayViewDecorator(new CircleIndicatorDecorator())
104+
```
105+
98106
To show the picker to the user:
99107

100108
```kt

0 commit comments

Comments
 (0)
Please sign in to comment.