Skip to content

Commit 00c9ce5

Browse files
drchenpaulfthomas
authored andcommitted
[Doc][Switch] Add android dev doc and source link to the Material dev doc
PiperOrigin-RevId: 482644772
1 parent 1d3e374 commit 00c9ce5

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

docs/components/Switch.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ path: /catalog/switches/
1212
[Selection controls](https://material.io/components/selection-controls#usage)
1313
allow the user to select options.
1414

15-
Switches toggle the state of a single setting on or off. They are the preferred
16-
way to adjust settings on mobile devices.
15+
[Switches](https://m3.material.io/components/switch/overview) toggle the state
16+
of a single setting on or off. They are the preferred way to adjust settings on
17+
mobile devices.
1718

1819
![White "Settings" menu with purple header and switches to turn on options, such
1920
as "Wi-fi" and "Bluetooth"](assets/switch/switch_hero.png)
@@ -68,6 +69,12 @@ customize the new styles.
6869

6970
### Switches example
7071

72+
API and source code:
73+
74+
* `MaterialSwitch`
75+
* [Class definition](https://developer.android.com/reference/com/google/android/material/materialswitch/MaterialSwitch)
76+
* [Class source](https://github.com/material-components/material-components-android/tree/master/lib/java/com/google/android/material/materialswitch/MaterialSwitch.java)
77+
7178
The following example shows a list of five switches.
7279

7380
![Example of 5 switches, the first one is toggled and the last one is disabled.](assets/switch/switch_example.png)

0 commit comments

Comments
 (0)