开发者

using gestureoverlayview with scrollview problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜