Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
Acc.SetContentDescription(B4XSwitchAcc1.Panel, "This is a switch. It is currently " & IIf(B4XSwitchAcc1.Value, "on.", "off."))
End Sub
Private Sub B4XSwitchAcc1_ValueChanged (Value As Boolean)
Acc.SetContentDescription(B4XSwitchAcc1.Panel, "This is a switch. It is currently " & IIf(B4XSwitchAcc1.Value, "on.", "off."))
End Sub