This repository was archived by the owner on Mar 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
LabeledSwitch
Angad Singh edited this page Feb 22, 2018
·
3 revisions
List of Attributes:
| XML attributes | |
|---|---|
| app:textOn | Text to use when the switch is in the 'on' state. |
| app:textOff | Text to use when the switch is in the 'off' state. |
| app:colorOn | Color to use when the switch is in the 'on' state. |
| app:colorOff | Color to use when the switch is in the 'off' state. |
| app:colorBorder | Color to use for switch border when in 'off' state. |
| app:colorDisabled | Color to use when switch is 'disabled' |
| app:on | Boolean to set a default value to switch |
| android:enabled | Boolean value to disable the switching property of switch |
| android:textSize | Size of the text. |
| Public methods | |
|---|---|
| app:textOn | Text to use when the switch is in the 'on' state. |
| app:textOff | Text to use when the switch is in the 'off' state. |
| app:colorOn | Color to use when the switch is in the 'on' state. |
| app:colorOff | Color to use when the switch is in the 'off' state. |
| app:colorBorder | Color to use for switch border when in 'off' state. |
| app:colorDisabled | Color to use when switch is 'disabled' |
| app:on | Boolean to set a default value to switch |
| android:enabled | Boolean value to disable the switching property of switch |
| android:textSize | Size of the text. |