Android Question How to accelerated count at long click

ThePuiu

Active Member
Licensed User
Longtime User
In one activity I have 2 buttons: plus and minus. These increments or decrements a counter by one unit at a time. I wish a long press to increase or decrease by 10 units. Whatever how long hold the button down the event occurs just once....
How can I do this?
Thank you!
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
Sub Button1_LongClick
    Log("Add 10 to whatever")
End Sub
 
Upvote 0

ThePuiu

Active Member
Licensed User
Longtime User
Yes, actually I forgot about Down event ... I am using a panel instead of a button.
Thank you!
 
Upvote 0
Top