material-components / material-components/material-components-android
[MaterialDatePicker] Cannot add bottom padding for edge-to-edge
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:** Fullscreen MaterialDatePicker shows elements under navigation bar in edge-to-edge. As the class is final there is no way to add padding to LinearLayout mtrl_picker_fullscreen.

**Expected behavior:**

**Source code:**
```
private void DatePickerDialog() {
Calendar cal = Calendar.getInstance();
Date today = cal.getTime();
cal.add(Calendar.YEAR, -2);
Date prevYear = cal.getTime();
CalendarConstraints constraints = new CalendarConstraints.Builder()
.setStart(prevYear.getTime())
.setEnd(today.getTime()).build();
MaterialDatePicker.Builder> builder = MaterialDatePicker.Builder.dateRangePicker().setCalendarConstraints(constraints);
MaterialDatePicker> datePicker = builder.build();
datePicker.show(getActivity().getSupportFragmentManager(), "DATE_PICKER");
}
```
**Android API version:** 35
**Material Library version:** material:1.12.0
**Device:** Google Pixel 8a
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with MaterialDatePicker and the mtrl_picker_fullscreen LinearLayout, then inspect how fullscreen edge-to-edge behavior is handled on Android API 35. Determine how bottom padding can be supported without subclassing the final class, and verify that the picker content no longer appears under the navigation bar on the reported device.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100