material-components / material-components/material-components-android
Customise spacing between action buttons in DatePicker
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 17.4k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
**Description:**
I want to customize the spacing between the action buttons (OK and Cancel buttons) and the dates in material3 date picker, but unable to do so.
Spacing between the action buttons (OK and Cancel buttons) and the dates is too high - how to reduce the spacing between the last row of dates and the action buttons.
In the screenshot, observe that spacing in left screenshot in much higher, whereas its smaller in the right screenshot.
**Expected behavior:**
Spacing between action buttons & dates should be customizable.
**Android API version:** Android 21
**Material Library version:** 1.8.0
**Device:** Pixel 8 Pro & other android devices
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 the Material 3 DatePicker entry point and reproduce the reported spacing on Android API 21 with Material Library 1.8.0. Compare the supplied screenshots and verify that the gap between the last date row and the OK/Cancel action buttons can be customized and reduced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android
- Domain
- design, mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100