A touch event will be detected in the visible View
your activity. Although the View
instance has a value of hidden / invisible
, you cannot interact with it.
You need a motion handler in the parent / visible view to determine whether to show the slider (in case the movement is vertical) or not.
source share