B4J Library [BAX] [XUI] xui_Switch (Class with source code)

I saw that someone had trouble creating a simple Switch in XUI. So I wanted to give an example.
No need to do reverse engineering I have source code.
It is a xCustomView and therefore should be used with the Design.

xui_Swicth: Star-Dust

Value As Boolean
setSwitchBitmap (Img As B4XBitmap, State As Boolean)

PS I expressly consent to use, modify and improve this code within the own App, without having to mention the original developer (me) to recognize any compensation in any form except the Like in this Forum :p


  • xui_switch.zip
    8.8 KB · Views: 408
Last edited: