Android Java Tutorial 2020 - 22 - Toggle Buttons & Switch

Опубликовано: 01 Март 2025
на канале: PRABEESH R K
5,529
43

A toggle button and switch allows the user to change a setting between two states. For example, you can turn on/off wifi using a toggle button or switch.

We can add a basic toggle button to our layout with the ToggleButton object. Android version 4.0 (API level 14) introduces another form of toggle button called a switch that provides a slider control, which we can add with a Switch object.

Like my Facebook page:   / codeglympse  
Subscribe My YouTube channel:    / ticoontechnologies