Mask
This is a wrapper for this github project.
Version: 1
This is a wrapper for this github project.
Version: 1
- MaskEditText
Methods:- Initialize (EventName As String, edit As EditText, mask As String)
- Mask (format As String, text As String) As String
- unMask (s As String) As String
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 EditText1 As EditText
Private EditText2 As EditText
Private mask As MaskEditText
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")
mask.Initialize("Mask",EditText1,"##.##.##.##.##")
mask.Initialize("Mask",EditText2,"(##)####-#######")
End Sub
Attachments
Last edited: