Dear Experts
Please I need to know if a button is LongClick or NOT.
I tried this sample code but it didn't work.
Sub Activity_Touch (Action As Int, X As Float, Y As Float)
Select Action
Case Activity.ACTION_DOWN
'code
Case Activity.ACTION_MOVE
' code
Case Activity.ACTION_UP
' code
End Select
End Sub
I'm using B4XPage.
Do I need to Declare anything first?
Thank you
Please I need to know if a button is LongClick or NOT.
I tried this sample code but it didn't work.
Sub Activity_Touch (Action As Int, X As Float, Y As Float)
Select Action
Case Activity.ACTION_DOWN
'code
Case Activity.ACTION_MOVE
' code
Case Activity.ACTION_UP
' code
End Select
End Sub
I'm using B4XPage.
Do I need to Declare anything first?
Thank you