时间:2010-07-25 12:59:13

标签: android gallery interactive non-interactive

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:0)

以下为我工作:

Gallery gallery = new Gallery( ctx ) {
    @Override
    public boolean onTouchEvent(MotionEvent event) {
        return true;
    }
};

如果仍有一些互动,您也可以尝试:

Gallery dotList = new Gallery( ctx ) {
    @Override
    public boolean onTouchEvent(MotionEvent event) {
        return true;
    }

    @Override
    public boolean onSingleTapUp(MotionEvent e) {
        return true;
    }

    @Override
    public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
        return true;
    }
};