P Pendrush Well-Known Member Licensed User Longtime User Jan 17, 2017 #1 Is it possible to add Switch view from code? B4X: Dim sw As Switch sw.Initialize("sw") '<-- Error (java.lang.RuntimeException: Object should first be initialized (Switch).)
Is it possible to add Switch view from code? B4X: Dim sw As Switch sw.Initialize("sw") '<-- Error (java.lang.RuntimeException: Object should first be initialized (Switch).)
Erel B4X founder Staff member Licensed User Longtime User Jan 17, 2017 #2 You must add it with the designer. You can however create a layout with the switch only and load it whenever you like to create one. Upvote 0
You must add it with the designer. You can however create a layout with the switch only and load it whenever you like to create one.