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

[Width for DatePicker] Customise width for the material3 date picker

Open
#4,344 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 width for the material3 date picker, but unable to do so.

The width of date picker - I want to increase the width of date picker so that the date picker occupy full width of screen with a padding of 16dp from the edge of the screen.

Screenshot 2024-10-10 at 5 26 59 PM

Expected behavior:
Width of date picker 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 by locating the Material3 date picker entry point and inspecting how its width is currently constrained. Completion means allowing the picker width to be customized so it can fill the screen with 16dp edge padding; the issue names no implementation file or test, so identify the relevant Android tests while tracing the component.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.