Basic android control learning ----- ToggleButton & Switch, androidtogglebutton
ToggleButton and Switch:
I. Core Attributes:
(1) ToggleButton
TextOn: Text displayed when the button is selected
TextOff: Text displayed when the button is not selected
(2) switch:
ShowText: Set whether the text is displayed when textOn/off is used.
Android: showText:Whether to display text when setting on/off, boolean
Android: splitTrack: whether to set a gap to separate the slider from the bottom image. boolean
Android: switchMinWidth: sets the minimum width of the switch.
Android: switchPadding: Set the text interval in 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, and italic.
Android: track: Bottom Image
Android: thumb: slider Image
You can try every attribute by yourself