Skip to content

Commit b7b0aa3

Browse files
committed
[RadioButton] Documentation review
PiperOrigin-RevId: 437313518
1 parent 0ab2068 commit b7b0aa3

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
@@ -145,9 +145,9 @@ tinted, set `app:useMaterialThemeColors` to `false`:
145145

146146
```xml
147147
<RadioButton
148-
...
148+
...
149149
app:useMaterialThemeColors="false"
150-
/>
150+
/>
151151
```
152152

153153
### Text label attributes
@@ -240,25 +240,25 @@ attribute:
240240

241241
```xml
242242
<style name="Widget.App.RadioButton" parent="Widget.Material3.CompoundButton.RadioButton">
243-
<item name="buttonTint">@color/button_tint</item>
243+
<item name="buttonTint">@color/button_tint</item>
244244
</style>
245245
```
246246

247247
and in `color/button_tint.xml`:
248248

249249
```xml
250250
<selector xmlns:android="http://schemas.android.com/apk/res/android">
251-
<item android:color="@color/shrine_pink_900" android:state_checked="true"/>
252-
<item android:alpha="0.38" android:color="@color/shrine_pink_100" android:state_enabled="false"/>
253-
<item android:color="@color/shrine_pink_100"/>
251+
<item android:color="@color/shrine_pink_900" android:state_checked="true"/>
252+
<item android:alpha="0.38" android:color="@color/shrine_pink_100" android:state_enabled="false"/>
253+
<item android:color="@color/shrine_pink_100"/>
254254
</selector>
255255
```
256256

257257
You can use the styles in the layout, which affects only this radio button:
258258

259259
```xml
260260
<RadioButton
261-
...
261+
...
262262
style="@style/Widget.App.RadioButton"
263-
/>
263+
/>
264264
```

0 commit comments

Comments
 (0)