Android的刷卡左边还是右边? [英] Android Swipe to left or right?

查看:137
本文介绍了Android的刷卡左边还是右边?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何检测在ListView有人刷卡向左或向右?

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

推荐答案

您会想要这个优秀的教程 (现场死亡,这里有一个新的链接:的http://jsharkey.org/blog/2008/09/15/crossing-things-off-lists-in-android-09-sdk/).从本质上讲,你要创造一个消费水平motionevents并通过非水平motionevents回落到ListView ListView的前面的透明视图。

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.

这篇关于Android的刷卡左边还是右边?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆