ToggleButton (switch button) and switch (switches) explained:
First, the core attributes of the explanation:
(1) ToggleButton
Texton: Text is displayed when the button is selected
Textoff: Text is displayed when the button is not selected
(2) Switch:
Showtext: Whether the text is displayed when setting Texton/off
Android:showtext: Sets whether to display text when on/off, Boolean
Android:splittrack: Whether to set a gap, let the slider and the bottom picture separated, Boolean
Android:switchminwidth: Set the minimum width of the switch
Android:switchpadding: Sets the spacing of text within the slider
Android:textoff: Text displayed when the button is not selected
Android:texton: Text displayed when the button is selected
Android:textstyle: Text style, bold, italic underline those
Android:track: Picture at the bottom
Android:thumb: Picture of the slider
You can try it yourself. Each property
Android Basic Control Learning-----Togglebutton&switch