문제

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

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top