Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim altv As AutoLinkTextView
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
altv.Initialize("altv")
altv.HashtagModeColor=Colors.Red
altv.MentionModeColor=Colors.Green
altv.addMode(Array As String(altv.MODE_MENTION,altv.MODE_HASHTAG))
altv.AutoLinkText="This is a #hashtag and this is not a @mention."
Activity.AddView(altv,0,0,100%x,100%y)
End Sub
Sub altv_click(autoLinkMode As String,matchedText As String)
Log(autoLinkMode&CRLF&matchedText)
End Sub