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...
				
					
						
							 
						
					
					www.b4x.com