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

[MaterialAlertDialogBuilder] setSingleChoiceItems items list scrolling layout

Open
#3,587 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Widget: Dialog
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

When setSingleChoiceItems is used with items that have multiple lines text, layout is scrolling instead of expanding the dialog body to show the full content.

![Screenshot_20230918_113325_BDD](https://github.com/material-components/material-components-android/assets/14946750/0610c5ee-bd8b-41fe-8a38-f478bfd85597)
![Screenshot_20230918_113334_BDD](https://github.com/material-components/material-components-android/assets/14946750/bbb171a0-24b3-40dc-8f6c-a647103ab9a6)

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 issue with MaterialAlertDialogBuilder.setSingleChoiceItems and multiline item text, then inspect the dialog layout behavior. Done means the dialog body expands to show the full item content instead of forcing the items into a scrolling layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.