Link-Label

D

Deleted member 103

Guest
Hi,

I am playing with an example of agraham and have a question:
Dim Obj1 As Reflector
Label1.Text = "Link to http://www.b4x.com"
Obj1.Target = Obj1.CreateObject("android.text.util.Linkify")
Dim args(2) As Object
Dim types(2) As String
args(0) = Label1
types(0) = "android.widget.TextView"
args(1) = 15
types(1) = "java.lang.int"
Obj1.RunMethod4("addLinks", args, types)

What should I do with it in my link-label e.g. only "Link: Basic4ppc" visible?

I hope Google has translated it correctly.:eek:

Many thanks,
Filippo
 

klaus

Expert
Licensed User
Longtime User
Hi Filippo,
I'm afraid that you can't do it.
According to the Android documentation:
Linkify take a piece of text and a regular expression and turns all of the regex matches in the text into clickable links.

Best regards.

Hallo Filppo.
Ich befürchte dass dies nicht möglich ist.
Gemäss der Android Dokumentation:
Linkify nimmt einen Text und einen regulären Ausdruck und wandelt alle regex Paarungen in Links um.

Beste Grüsse.
 
Upvote 0
Top