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

[MaterialRadioButton] App centerIfNoTextEnabled like checkboxes

Open
#3,301 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request Widget: RadioButton
Dominant language
Java
Stars
17.4k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**

By default `MaterialCheckBox` will center if there is no content using the `centerIfNoTextEnabled` property. Oddly this was never added for `MaterialRadioButton`

```XML

```

image

image

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.

We also happily accept [pull requests](https://github.com/material-components/material-components-android/pulls).

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 comparing MaterialRadioButton with MaterialCheckBox and tracing the existing centerIfNoTextEnabled behavior on the checkbox. Determine the corresponding radio-button entry point and verify the result with the component's existing Android tests; done means a textless MaterialRadioButton can center its control through the equivalent property.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.