I always create view from layout designer. Today I have to use B4XPages Coding. I wonder that how to addview by coding in B4XPage directly. Sub Activity_Create(FirstTime As Boolean) Private lbl1 As Label lbl1.Initialize("lbl1")...
XUI Views is a b4x library (https://www.b4x.com/android/forum/threads/100383/#content). The same b4xlib library is compatible with B4A, B4i and B4J It is a collection of custom views and dialogs. Everything is written in B4X. The source code is included inside the b4xlib file, which is a zip...
In Non-B4XPages ,imgSwitch As ImageView imgSwitch.Initialize("imgSwitch") mBase.AddView(imgSwitch, 0, 0, mBase.Width, mBase.Height) ,But in B4XPages, I have changed imgSwitch As B4XImageView (Using B4XViews library) imgSwitch.Initialize(Me,"imgSwitch") mBase.AddView() '