Android Question release event

gerredtor

Active Member
Licensed User
hello it is possible to create a release event e.g. you fire a _Click function and then you fire a _Release
function
 

DonManfred

Expert
Licensed User
Longtime User
i dont understand the question.

You can for sure directly calling a sub
 
Upvote 0

gerredtor

Active Member
Licensed User
I click a Panel, Then fire the panel a event (_Click) and when i release the click then the panel fire a event (_Release)
 
Upvote 0

ilan

Expert
Licensed User
Longtime User
I click a Panel, Then fire the panel a event (_Click) and when i release the click then the panel fire a event (_Release)

yes you have the touch event on a panel and you can recognize 3 actions (down, move, up)

B4X:
Sub Panel1_Touch (Action As Int, X As Float, Y As Float)
   
    Select Action
        Case 0 'down
            Log("i was touched")
        Case 1 'up
            Log("finger left me")
        Case 2 'move
            Log("stop tickle me")   
    End Select
   
End Sub
 
Upvote 0
Top