@@ -27,7 +27,7 @@ as "Wi-fi" and "Bluetooth"](assets/switch/switch_hero.png)
2727
2828## Using switches
2929
30- Before you can use Material switches, you need to add a dependency to the
30+ Before you can use Material switches, you need to add a dependency on the
3131Material Components for Android library. For more information, go to the
3232[ Getting started] ( https://github.com/material-components/material-components-android/tree/master/docs/getting-started.md )
3333page.
@@ -59,8 +59,8 @@ indicate its current state.
5959
6060** Note:** Since version 1.7.0, the new ` MaterialSwitch ` class will replace the
6161obsolete ` SwitchMaterial ` class. In most cases you should be able to just
62- replace all ` SwitchMaterial ` class reference with ` MaterialSwitch ` to enjoy the
63- default look and feel. Please refer to the following sections if you need to
62+ replace all ` SwitchMaterial ` class reference with ` MaterialSwitch ` to achieve
63+ the default look and feel. Please refer to the following sections if you need to
6464customize the new styles.
6565
6666** Note:** For the old ` SwitchMaterial ` documentation, please refer to
@@ -125,8 +125,8 @@ track:
125125
126126![ Switch anatomy diagram] ( assets/switch/switch_anatomy.png )
127127
128- 1 . Thumb
129- 2 . Track
128+ 1 . Track
129+ 2 . Thumb
1301303 . Icon (optional)
131131
132132### Switch attributes
@@ -150,7 +150,7 @@ Element | Attribute | Related method(s)
150150** Color** | ` app:thumbIconTint ` | ` setThumbIconTintList ` <br />` getThumbIconTintList ` | ` ?attr/colorSurfaceVariant ` (unchecked)<br />` ?attr/colorOnPrimaryContainer ` (checked)
151151
152152You can add an optional icon to enhance the on/off indication of your custom
153- switch by assiging ` app:thumbIcon ` . This icon will be centered and displayed on
153+ switch by assigning ` app:thumbIcon ` . This icon will be centered and displayed on
154154top of the thumb drawable.
155155
156156### Track attributes
0 commit comments