Custom views are designed to be added with the designer. It is however very simple to create a layout file with the custom view and load it multiple times. Tip: remove the call to AutoScaleAll from the designer script. Complete example: Sub Globals Private B4XSwitch1 As B4XSwitch End...
Okay, it seems to be no easy code-access to this properties. Just wanted do have random styles of this in the app, but for this little fun it is not worth to change the lib