material-components / material-components/material-components-android
[MaterialRadioButton] App centerIfNoTextEnabled like checkboxes
Nobody has claimed this yet.
- 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
```


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