Android Swipe to left or right?

后端 未结 2 1952
不知归路
不知归路 2020-12-30 17:17

How can I detect in a ListView that someone swiped to the left or the right?

相关标签:
2条回答
  • 2020-12-30 17:29

    You'll be wanting this excellent tutorial (site died, here's a new link: http://jsharkey.org/blog/2008/09/15/crossing-things-off-lists-in-android-09-sdk/). Essentially, you're going to create a transparent view in front of the ListView which consumes horizontal motionevents and passes non-horizontal motionevents back down to the ListView.

    0 讨论(0)
  • 2020-12-30 17:37

    gestures recognition wont be supported on 1.5 for which you might want to refactor gesture base code, and add to your application so to work good on 1.5 in case you are not supporting 1.5 your already good.

    0 讨论(0)
提交回复
热议问题