This is a wrap for this Github project.
HashGirl
Author: DonManfred (wrapper)
Version: 1
HashGirl
Author: DonManfred (wrapper)
Version: 1
- HashGirl
Events:- onClickHash (hash As String)
- Initialize (EventName As String, text As String) As HashGirlWrapper
- IsInitialized As Boolean
- alpha (alpha As Int) As HashGirlWrapper
- bgcolor (color As Int) As HashGirlWrapper
- color (color As Int) As HashGirlWrapper
- grab (pattern As String) As HashGirlWrapper
- grab2 (pattern As String, postfixToRemove As String) As HashGirlWrapper
- grab3 (pattern As String, postfixToRemove As String, prefixToRemove As String) As HashGirlWrapper
- into (textView As TextView)
- strike (strike As Boolean) As HashGirlWrapper
- underline (underline As Boolean) As HashGirlWrapper
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private hashgirl As HashGirl
Private Label1 As Label
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")
hashgirl.Initialize("Hash","Hello, I'm #Super Hash Girl^ in the World. You can hash #every^thing what you want. #I will hash you^").grab3("(#((\w+ *)*)\^)", "^", "#").underline(True).color(Colors.BLUE).bgcolor(Colors.WHITE).into(Label1)
End Sub
Sub Hash_onClickHash(hash As String)
Log($"onClickHash(${hash})"$)
End Sub