Private MadeWithLove1 As MadeWithLove
...
ChangeTextAndMakeClickable(MadeWithLove1)
Dim p As B4XView = xui.CreatePanel("")
p.SetLayoutAnimated(0, 0, 0, MadeWithLove1.mBase.Width, MadeWithLove1.mBase.Height)
'Dim obj as B4XView = MadeWithLove1 ' types do not match
'Dim obj As View = MadeWithLove1 ' squig
Dim obj As Object = MadeWithLove1 ' no squiggly, but BOOM
p.AddView(obj, 0, 0, p.Width, p.Height)
xlvText.Add(p, 100)
...
Private Sub ChangeTextAndMakeClickable (love As MadeWithLove)
Dim cs As CSBuilder
cs.Initialize.Append("Feito com ").Typeface(Typeface.FONTAWESOME).Color(xui.Color_Red).Append(Chr(0xF004)).Pop.Pop _
.Append(" usando ").Clickable("cs", "").Underline.Color(xui.Color_Blue).Append("B4X").PopAll
Dim lbl As Label = love.mBase.GetView(0)
cs.EnableClickEvents(lbl)
lbl.Text = cs
End Sub
Private Sub cs_Click (Tag As Object)
Dim i As Intent
i.Initialize(i.ACTION_VIEW, "https://www.b4x.com")
StartActivity(i)
End Sub