File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,9 @@ path: /catalog/switches/
1212[ Selection controls] ( https://material.io/components/selection-controls#usage )
1313allow 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
1920as "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+
7178The 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 )
You can’t perform that action at this time.
0 commit comments