摘要:        
简单写一下,view 或者 activity 实现 OnGestureListener 接口。在 onFling方法中实现左右滑动:[java]view plaincopypublicbooleanonScroll(MotionEvente1,MotionEvente2,floatdistanceX,floatdistanceY){floaty1=e1.getY(),y2=e2.getY();if(y1-y2>120){if(mDirection!=SOUTH){mNextDirection=NORTH;}Log.d(this.getClass().getName(),"ToU    
阅读全文