Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

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.

XML Attributes

app:textOn

app:textOff

app:colorOn

app:colorOff

app:colorBorder

app:colorDisabled

app:on

android:enabled

android:textSize