Toggle buttons are elongated buttons that have either one or two holes in the center. A string is then passed through those holes and attached to one side of the garment opening. Another string is attached to the opposite side in order to create a loop.
A toggle button allows the user to change a setting between two states. You can add a basic toggle button to your layout with the ToggleButton object. Android 4.0 (API level 14) introduces another kind of toggle button called a switch that provides a slider control, which you can add with a Switch object.
Appearance. Designed with a hollow protrusion structure in the rear, shank buttons are also referred to as buttons with hidden holes. These buttons are sewn onto the garments through the hollow protrusion using the sewing threads. Flat buttons are also referred to as buttons with visible holes.