Skip to content

Commit 2db68ee

Browse files
Material Design Teamdsn5ft
authored andcommitted
[M3][Docs] Update Radio button developer documentation
PiperOrigin-RevId: 399684762
1 parent ff2c03b commit 2db68ee

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/components/RadioButton.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Element | Attribute | Relate
140140

141141
The color of the radio button defaults to `?attr/colorOnSurface` (unchecked) and
142142
`?attr/colorPrimary` (checked) defined in your app theme. If you want to
143-
override this behavior, as you might with a custom drawable that should not be
143+
override this behavior, you could use a custom drawable that should not be
144144
tinted, set `app:useMaterialThemeColors` to `false`:
145145

146146
```xml
@@ -184,7 +184,7 @@ and
184184

185185
Radio buttons support
186186
[Material Theming](https://material.io/components/selection-controls#theming)
187-
and can be customized in terms of color and typography.
187+
which can customize color and typography.
188188

189189
### Radio button theming example
190190

@@ -204,8 +204,8 @@ button"](assets/radiobutton/radiobutton_theming.png)
204204

205205
#### Implementing radio button theming
206206

207-
Using theme attributes in `res/values/styles.xml` (themes all radio buttons and
208-
affects other components):
207+
Use theme attributes in `res/values/styles.xml` which applies to all radio
208+
buttons and affects other components:
209209

210210
```xml
211211
<style name="Theme.App" parent="Theme.Material3.*">
@@ -216,8 +216,8 @@ affects other components):
216216

217217
```
218218

219-
or using default style theme attributes, styles and theme overlays (themes all
220-
radio buttons but does not affect other components):
219+
Use default style theme attributes, styles and theme overlays which apply to all
220+
radio buttons but do not affect other components:
221221

222222
```xml
223223
<style name="Theme.App" parent="Theme.Material3.*">
@@ -235,7 +235,7 @@ radio buttons but does not affect other components):
235235
</style>
236236
```
237237

238-
you can also change the radio button colors via the `?attr/buttonTint`
238+
You can also change the radio button colors via the `?attr/buttonTint`
239239
attribute:
240240

241241
```xml
@@ -254,7 +254,7 @@ and in `color/button_tint.xml`:
254254
</selector>
255255
```
256256

257-
or using the styles in the layout (affects only this radio button):
257+
You can use the styles in the layout, which affects only this radio button:
258258

259259
```xml
260260
<RadioButton

0 commit comments

Comments
 (0)