DrawerLayout prevents call of MainActivity.onTouchEvent()

前端 未结 3 1247
梦谈多话
梦谈多话 2021-01-06 04:48

I have an app that overrides the onTouchEvent(MotionEvent ev) of the MainActivity to determine Two-Finger-Swipe and Pich-Open

3条回答
  •  暖寄归人
    2021-01-06 05:13

    In case you or anyone else still need it, here is my implementation.
    Works perfectly with the exception of the "edge" not being taken from android code but as a constant (which I set).

    Please view this link:
    Android Navigation Drawer Doesn't Pass onTouchEvent to Activity

提交回复
热议问题