What is the purpose of the B4XView pnl?
B4X:
'B4i - don't miss the inline OBJC code in the main module.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("1")
TextEngine.Initialize(Root)
BBCodeView1.TextEngine = TextEngine
Dim btn As Button
#if B4i
btn.Initialize("btn", btn.STYLE_SYSTEM)
#Else If B4J or B4A
btn.Initialize("btn")
#End If
Dim xbtn As B4XView = btn
If xui.IsB4i Then xbtn.SetColorAndBorder(xui.Color_Transparent, 1dip, xui.Color_Black, 2dip)
xbtn.Text = "Click!"
xbtn.SetLayoutAnimated(0, 0, 0, 100dip, 40dip)
' ----------------------------------------------------------------------------
' What is the purpose of this B4XView? How is it referenced?
Dim pnl As B4XView = xui.CreatePanel("")
pnl.SetLayoutAnimated(0, 0, 0, 200dip, 120dip)
' ----------------------------------------------------------------------------
BBCodeView1.Views.Put("btn", btn)
BBCodeView1.Text = $"[Alignment=Center][TextSize=20][b][u]This is the title$"$
End Sub