I've tried to create a panel and add a radio button inside by doing this:
but I get the message that rb1 is not initialized. I suspect a B4XRadioButton cannot be added programatically?
B4X:
Dim contentsPanel As B4XView=XUI.CreatePanel("")
contentsPanel.SetLayoutAnimated(0, 0, 0, 300dip, 300dip)
Dim rb1 As B4XRadioButton
rb1.Initialize(Me,"Radiobutton")
rb1.Checked=True
rb1.mHaptic=False
rb1.OnColor=Colors.Red
rb1.OffColor=Colors.Blue
rb1.Text="Radio button"
rb1.mLabel.TextColor = XUI.Color_Red
contentsPanel.AddView(rb1.mbase,0,0,100dip,100dip)
but I get the message that rb1 is not initialized. I suspect a B4XRadioButton cannot be added programatically?