public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
float velocityY) {
}
在这个方法中,e1.getX() - e2.getX() >120是// 从左向右边滑动吗?为什么我这样设置了,图片还是一致从右往左滑动呢?
还有返回值true和false是什么意思啊?PS 相应方法是没问题的public boolean onTouchEvent(MotionEvent event) {
return gestureDetector.onTouchEvent(event);// 注册触摸时候的手势事件
}
求高手解答
float velocityY) {
}
在这个方法中,e1.getX() - e2.getX() >120是// 从左向右边滑动吗?为什么我这样设置了,图片还是一致从右往左滑动呢?
还有返回值true和false是什么意思啊?PS 相应方法是没问题的public boolean onTouchEvent(MotionEvent event) {
return gestureDetector.onTouchEvent(event);// 注册触摸时候的手势事件
}
求高手解答
解决方案 »
- 编译一个模块时出现undefined reference to `__android_log_print'
- .net中通过NetworkCredential提供的凭证,在ksoap2中通过什么Element提交?
- build sdk 不通过You are attempting to build with the incorrect version of java.
- android手机上网问题.
- Oauth 认证问题
- android 系统广播源代码位置
- res文件夹添加了新项,R却没变
- 滚动条问题
- Eclipse的DDMS监控USB连接的手机导致无法硬件弹出,怎么办?
- Android RadioGroup.setOnCheckedChangeListener点击事件只执行一次是为什么
- 菜鸟初学Service
- 开贴讨论类似QQ的跨平台网络通信的实现
如果是后一种情况,那就是你的响应事件错了,事件响应了,但是你没有设置图片从左向右滑