闲坐敲棋

有约不来过夜半,闲敲棋子落灯花

导航

2011年9月17日

摘要: 手势监控代码:页面实现 OnGestureListener 事件定义两个变量设置手势边界值 private static final int FLING_MIN_DISTANCE = 80; private static final int FLING_MIN_VELOCITY = 100; @Overridepublic boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,float velocityY) { //向右翻 if (e1.getX() - e2.getX() > FLING_MIN_DISTANC 阅读全文

posted @ 2011-09-17 23:03 闲坐敲棋 阅读(527) 评论(0) 推荐(0)