material-components / material-components/material-components-android

Customise spacing between action buttons in DatePicker

Open
#4,345 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Widget: DatePicker
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.

Screenshot 2024-10-10 at 5 26 59 PM

**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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.