问题描述
|
我想念什么吗?
有这个:
public boolean onTouchEvent (MotionEvent event)
我用Activity
。它确实会在“触摸”事件上触发,但不会在潜在的“未触摸”事件上触发(松开手指)。
解决方法
抱歉,我应该进一步搜索...
它的诀窍是:如何获得连续的触摸事件?
更确切地说,就我而言:
if (event.getAction() == MotionEvent.ACTION_UP) {
// here we have the \"untouch\" event
}
, 您是在说ACTION_UP吗?