I am confused by the two methods in Android. It
seems that both methods tell you what kind of event it is,
i.e., whether it is a down or up event.
When will I use which?
public void onTouchEvent(MotionEvent e)
Don't quote the documentation please, because I read it, and I don't see any parameter I can supply to either of the methods to get something different.
public final int getAction ()
and
public final int getActionMasked()
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…