質問

I am experiencing the following issue:

In an Android application, I use NavigationDrawer for, well ..., navigation.

My issue is that even if the user is opening the drawer (by swiping on left screen border) the ACTION_DOWN MotionEvent is not consumed by the drawer, it is propagated to the underlying view (a GLSurfaceView). In such case, my view receives the MotionEvent with the ACTION_DOWN action, but never receives the ACTION_UP MotionEvent. This corrupts my event management logic.

What I would expect is that whenever you receive the ACTION_DOWN event (and handle it) you should receive the ACTION_UP event when the user stop interacting.

What am I missing ?

役に立ちましたか?

解決

your GLSurfaceView will most likely receive ACTION_CANCEL event

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top