Nothing happened when I set it in the Designer. Also following line of code B4XSwitch1.mBase.Text="test text" causes the compiler error: java.lang.RuntimeException: Type does not match (class anywheresoftware.b4a.BALayout) What did I miss? TIA
However, you know you can add a small label above or below the switch that can show the status; you can even embellish it using CSBuilder:
Sub B4XSwitch_ValueChanged (Value As Boolean)
If Value Then
Here is the current behavior in B4A (see attached files)
When you select the orange ToggleButton, you can then select one of the buttons below and it colors it orange.
If you select the green ToggleButton, the orange is deselected. We can then select another button below to apply the green border to it.
Depending on the ToggleButton that we have selected the actions are different
it behaves like a group of radio buttons but I don't want a circle with the text next to it but rather buttons with a selected state
which cross-platform view would you recommend me to use?