如题。
这两样事件需要什么样的条件才能发生。

解决方案 »

  1.   

    没有人知道吗?唉,ANDROID实在太新了。
    很多东西都没多少人接触过,自然也没有相关文档。
    有的文档也有不少是错误的
      

  2.   

    public static final int ACTION_CANCEL :
    Constant for getAction(): The current gesture has been aborted. You will not receive any more points in it. You should treat this as an up event, but not perform any action that you normally would. public static final int ACTION_OUTSIDE :
    Constant for getAction(): A movement has happened outside of the normal bounds of the UI element. This does not provide a full gesture, but only the initial location of the movement/touch.敢问楼主,你还想怎么样
      

  3.   

    ACTION_CANCEL不会由用户直接触发我记得我以前做一个ontouch处理的时候,打印过,当时是move的时候吧。到一个临界值的时候,将layout内的view内容更新一遍。ACTION_MOVE事件以后松手后走不到ACTION_UP,在这个时候打印出来的。后来检查发现每次ACTION_MOVE事件的时候在ontouch执行了太多冗余的代码。出现的这个状况。没有具体深究过。OUTSIDE没遇到过.
      

  4.   

    唉,不好用。非全屏activity屏幕外面进行点击也Action_Down和Action_up
    至于Cancel,我同意5楼的观点不能由用户直接触发。
      

  5.   

    继续坐等高人,解决Action_OUTSIDE。
    5楼等收分
      

  6.   

    ACTION_CANCEL:
    请参考
    http://stackoverflow.com/questions/6018309/action-cancel-while-touching