Dim btn As Button
btn.Initialize("btn")
btn.Text = "Click!"
btn.SetLayoutAnimated(0, 0, 0, 100dip, 40dip)
Dim pnl As B4XView = xui.CreatePanel("")
pnl.SetLayoutAnimated(0, 0, 0, 200dip, 120dip)
pnl.LoadLayout("CustomListView")
BBCodeView1.Views.Put("btn", btn)
BBCodeView1.Views.Put("clv", pnl)
For i = 1 To 50
CustomListView1.AddTextItem($"Item ${i}"$, "")
Next
BBCodeView1.Text = _
$"[Alignment=Center][TextSize=20][b][u]This is the title[/u][/b][/TextSize][/Alignment]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc fermentum elit vitae nisi faucibus, vitae lacinia turpis mattis.
Lets add a [Color=#ff0000][b]button:[/b][/color] [View=btn Vertical=10/] and more text here...
We can also add links, for example: [url]https://www.google.com[/url]. You can click on the link. The title will be updated.
Here is a nice logo: [img dir=${File.DirAssets} FileName="logo.png" width=50/]
Do you wonder whether it is possible to add more complex views?
Sure: [vertical=30][view=clv/][/vertical]
We can also download an image here: [url="DonManfred's avatar"][img url="https://b4x-4c17.kxcdn.com/android/forum/data/avatars/l/42/42649.jpg?1432374732" width=60 height=60/][/url]
Note that you must explicitly set the dimensions of such images.
"$