开发者

using gestureoverlayview with scrollview problem

开发者 https://www.devze.com 2023-04-07 10:53 出处:网络
I have scrollview in that i have tableview and in that I have gestureoverlayview ....my problem is when I do any gesture horizontally it works fine but when I do any gesture vertically the scrollview

I have scrollview in that i have tableview and in that I have gestureoverlayview ....my problem is when I do any gesture horizontally it works fine but when I do any gesture vertically the scrollview start moving ...the event get captured by scrollview ... I tried following code but it dint work out

public boolean dispatchTouchEvent(MotionEvent ev) {
    System.ou开发者_运维技巧t.println("m touched");
    if(ev.equals(sEvent)){
        System.out.println("in touched2");

        return overlay.dispatchTouchEvent(ev);
    }else{
    return scl.dispatchTouchEvent(ev);
    }
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号