I haven’t looked at your code, but I have encountered the same problem. First, you need to judge the finger displacement to determine which component the current Touch event should be captured by, such as your current left and right sliding, your current component has your listview, and Have every item in your listview. Now that everything is understood, it will be easy to do. Post an example, otherwise it would be insincere.
If you haven’t solved it yet, you can try this open source example: https://github.com/timroes/EnhancedListView supports the sliding deletion you mentioned
I haven’t looked at your code, but I have encountered the same problem. First, you need to judge the finger displacement to determine which component the current Touch event should be captured by, such as your current left and right sliding, your current component has your listview, and Have every item in your listview. Now that everything is understood, it will be easy to do. Post an example, otherwise it would be insincere.
This is used to judge left and right swiping and select to capture.
This is used to distribute events
If you haven’t solved it yet, you can try this open source example: https://github.com/timroes/EnhancedListView supports the sliding deletion you mentioned