iOS Question CSBuilder link in a label

yiankos1

Well-Known Member
Licensed User
Longtime User
Hello,

I can create linkable text with this code:
B4X:
Dim cs As CSBuilder
TextView1.Editable = False
cs.Initialize.Font(Font.CreateNew(25)).Append("Some ").Link("somevalue").Append("words").Pop
cs.Append(" are ").Link("anothervalue").Append("clickable").PopAll
TextView1.AttributedText = cs

Sub TextView1_LinkClick (URL As String)
   Log(URL)
End Sub
When i add it in a label, indeed creates a link text (blue color + underline) but seems that does not fire lblCommentText_LinkClick sub. Is it only availble for textview?

Moreover, if i add couple of items in a CLV with this kind of clickable labels, click events will fire at the same sub with different URL?

Thank you for your time.
 
Top