Android Swipe to left or right?

2019-02-05 15:18发布

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

2条回答
兄弟一词,经得起流年.
2楼-- · 2019-02-05 15:58

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.

查看更多
成全新的幸福
3楼-- · 2019-02-05 16:01

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.

查看更多
登录 后发表回答