#Region Project Attributes
#ApplicationLabel: LibEx
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#CanInstallToExternalStorage: False
#End Region
#AdditionalRes : ..\res
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private etName As EditText
Private etNumber As EditText
Private etExpiration As EditText
Private etCvv As EditText
Private btnclose As Button
Private btnturn As Button
Private card As CreditCardView
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")
card.CardNumber = "3744 4444 4444 4444"
card.CardName = "Uncle Scrooge"
card.setCardValidThru(8,2015)
card.setValidThruText("Express","End")
card.MonthYearText = "MONTH/YEAR"
card.InformationText = "Legal -SIGNATURE DU TITULAIRE VALIDE UNIQUEMENT APRES SIGNATURE"
card.ExpirationTextInput = etExpiration
card.CvvTextInput = etCvv
card.NumberTextInput = etNumber
card.NameTextInput = etName
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub btnclose_Click
card.CardNumber = ""
card.CardName = ""
card.setCardValidThru(0,0)
etExpiration.Text = ""
etCvv.Text = ""
etName.Text = ""
etNumber.Text = ""
End Sub
Sub card_ontoggle
'TO DO
ToastMessageShow("I'm in the toggle event",True)
End Sub
Sub btnturn_Click
card.toggleCardFace
End Sub