Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在将 DialogFragment 发送到对话框之前拦截触摸事件?当我想拦截 Activity 上的触摸事件时,我会覆盖该 Activity 的 dispatchTouchEvent(MotionEvent ev)。如何为 DialogFragment 做类似的事情?看来dispatchTouchEvent对Activity中包含的fragment没有影响。
谢谢