解决方案 »

  1.   

    写个类implements OnTouchListener 在里面写一下手势的判断
    MotionEvent.ACTION_DOWN MotionEvent.ACTION_UP 是手按下和抬起的事件
    然后你判断下坐标,去切换viewFlipper给所有按钮添加这个监听 button.setOnTouchListener();
      

  2.   

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev){
    this.mGestureDetector.onTouchEvent(ev);
    return super.dispatchTouchEvent(ev);
    }
    加上这个函数就行了其实