dispatchTouchEvent in Fragment in Android

后端 未结 3 1028
深忆病人
深忆病人 2021-01-17 11:49

I am trying to get swipe up and swipe down gestures working in Fragment. The same is working fine with activity. In Fragment, I have an issue with dispatchTouchEvent. How d

3条回答
  •  再見小時候
    2021-01-17 12:16

    If your goal is to detect/handle swipe, add touch event listener on the fragment's view after creating the view.

提交回复
热议问题