i tried add swipe event screen has got bunch of buttons. swipe not working buttons. in other words, if swipe on top of buttons, swipe event not recognized. so, tried 2 (top , bottom) layers of layout in activity. top handling swipe , bottom buttons , other ui elements. but, top layer taking event , bottom not accessible. there ways can send click event bottom layer.
the main requirement is, handling swipe , click in screen bunch of button. swipe not recognized buttons.
how solve problem.
your ontouchevent()
top layer must return false
if wants underneath see touch event. should return true
if has handled event , not need propagated further.
Comments
Post a Comment