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

[Height for DatePicker] Customise height for the material3 date picker

Open
#4,343 0 comments 0 reactions 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 height for the material3 date picker, but unable to do so, when switching to year selection UI, the height of date picker dialog changes as well - is it possible to keep the height of the dialog same when switching to year selection UI.

Height of date picker - when switching from date selection to year selection, the height of date picker increases. How to keep the height same when switching between date & year selection?

Screenshot 2024-10-10 at 5 26 59 PM

**Expected behavior:**
Height should be customizable in year selection mode for date picker

**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 by reproducing the Material 3 date picker behavior on Android API 21 with Material Library 1.8.0, switching between date and year selection. Investigate the date picker entry point and its dialog sizing behavior; done means the dialog height remains customizable and consistent in year selection mode without disrupting date selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
design, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.