解决方案 »

  1.   

    禁止不了的。可以换用ViewPager,这个不会回弹。
      

  2.   


    可以自定义gallery里重写onFling方法。
     @Override
            public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
                    
                    if (e2.getX() > e1.getX()) {
         // 往左边滑动
         super.onKeyDown(KeyEvent.KEYCODE_DPAD_LEFT, null);
                    } else {
         // 往右边滑动
         super.onKeyDown(KeyEvent.KEYCODE_DPAD_RIGHT, null);
                    }
                    
                    return false;
            }
      

  3.   

    重写onFling方法。还是回弹??