Android Question Detect touch

Sasuke Sama

Active Member
Licensed User
how can i see if a user is currently touching an object?
you see i have a seekbar
the seekbar shows when the user touches the screen and disapear after 3 seconds.
i want to detect if the user is using it or is touching it to keep it visable as long as the user is using it even after the 3 seconds


B4X founder
Staff member
Licensed User
Longtime User
A simpler solution will be to hide the bar after it is inactive for a few seconds:
Sub SeekBar1_ValueChanged (Value As Int, UserChanged As Boolean)
   SeekBarIndex = SeekBarIndex + 1 'global int variable
   Dim MyIndex As Int
   If MyIndex <> SeekBarIndex Then Return
End Sub
Upvote 0