Skip to content

Commit 8eef2ec

Browse files
Material Design Teamraajkumars
authored andcommitted
[M3][Docs] Update Switch developer documentation
PiperOrigin-RevId: 399296926
1 parent 5446097 commit 8eef2ec

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/components/Switch.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ path: /catalog/switches/
1313
allow the user to select options.
1414

1515
Switches toggle the state of a single setting on or off. They are the preferred
16-
way to adjust settings on mobile.
16+
way to adjust settings on mobile devices.
1717

1818
![White "Settings" menu with purple header and switches to turn on options, such
1919
as "Wi-fi" and "Bluetooth"](assets/switch/switch_hero.png)
@@ -115,7 +115,7 @@ track:
115115
![Switch anatomy diagram](assets/switch/switch_anatomy.png)
116116

117117
1. Thumb
118-
1. Track
118+
2. Track
119119

120120
### Switch attributes
121121

@@ -189,8 +189,8 @@ and
189189
## Theming switches
190190

191191
Switches support
192-
[Material Theming](https://material.io/components/selection-controls#theming)
193-
and can be customized in terms of color and typography.
192+
[Material Theming](https://material.io/components/selection-controls#theming),
193+
which can customize color and typography.
194194

195195
### Switch theming example
196196

@@ -206,8 +206,8 @@ The following example shows a list of switches with Material Theming.
206206

207207
#### Implementing switch theming
208208

209-
Using theme attributes in `res/values/styles.xml` (themes all switches and
210-
affects other components):
209+
Use theme attributes in `res/values/styles.xml`, which applies to all switches
210+
and affects other components:
211211

212212
```xml
213213
<style name="Theme.App" parent="Theme.Material3.*">
@@ -218,8 +218,8 @@ affects other components):
218218

219219
```
220220

221-
or using default style theme attributes, styles and theme overlays (themes all
222-
switches but does not affect other components):
221+
Use default style theme attributes, styles and theme overlays, which apply to
222+
all switches but do not affect other components:
223223

224224
```xml
225225
<style name="Theme.App" parent="Theme.Material3.*">
@@ -237,7 +237,7 @@ switches but does not affect other components):
237237
</style>
238238
```
239239

240-
or using the styles in the layout (affects only this switch):
240+
Use the styles in the layout, which affects only this switch:
241241

242242
```xml
243243
<com.google.android.material.switchmaterial.SwitchMaterial

0 commit comments

Comments
 (0)